Public Member Functions |
| void | AddDuelClient (uint32_t clientnum) |
| void | AddPet (gemActor *pet) |
| bool | AllowDisconnect () |
| | Permit the player to disconnect? Players cannot quit while in combat (includes spell casting).
|
| void | AnnounceToDuelClients (gemActor *attacker, const char *event) |
| void | ClearAllDuelClients () |
| | Client () |
| | Please call constructor with the connection object produced by handleUnknownClient.
|
| void | CountDetectedCheat () |
| | Give a warning to the client silently. Capped at 10000.
|
| void | DecrementSpamPoints () |
| bool | Disconnect () |
| void | FloodControl (uint8_t chatType, const csString &newMessage, const csString &recipient) |
| | Warn or mute for chat spamming.
|
| AccountID | GetAccountID () |
| | The account number for this client.
|
| unsigned int | GetAccountTotalOnlineTime () |
| gemActor * | GetActor () const |
| const SOCKADDR_IN & | GetAddress () const |
| bool | GetAdvisor () |
| int | GetAdvisorPoints () |
| int | GetAllianceID () |
| | the alliance id value if the player is member of a guild in an alliance
|
| bool | GetBuddyListHide () |
| MuteBuffable & | GetBuffableMute () |
| psCharacter * | GetCharacterData () |
| bool | GetCheatMask (CheatFlags mask) |
| uint32_t | GetClientNum () const |
| NetBase::Connection * | GetConnection () const |
| unsigned int | GetDetectedCheatCount () |
| int | GetDuelClient (int id) |
| int | GetDuelClientCount () |
| int | GetExchangeID () |
| gemActor * | GetFamiliar () |
| int | GetGuildID () |
| | The guild id value if player is member of guild.
|
| csString | GetIPAddress () |
| void | GetIPAddress (char *addrStr, socklen_t size) |
| | Return a string representing the ip address of this client.
|
| csString | GetIPRange (int octets=3) |
| bool | GetLastInviteResult () |
| csTicks | GetLastInviteTime () |
| csList< iSector * >::Iterator | GetLocationDisplaying () |
| csString | GetMesh () const |
| const char * | GetName () |
| | Get Client Name.
|
| size_t | GetNumPets () |
| OrderedMessageChannel * | GetOrderedMessageChannel (msgtype mtype) |
| | Get the channel to use for an ordered message.
|
| csList< iSector * >::Iterator | GetPathDisplaying () |
| gemActor * | GetPet (size_t index) |
| PID | GetPID () |
| | The player number for this client.
|
| int | GetSecurityLevel () const |
| | The security level of this player.
|
| int | GetSelectedLocationID () |
| int | GetSpamPoints () |
| int | GetTargetClientID () |
| | Get the current selected target player.
|
| gemObject * | GetTargetObject () const |
| csList< iSector * >::Iterator | GetWaypointDisplaying () |
| bool | HasBeenPenalized () |
| bool | HasBeenWarned () |
| void | IncrementAdvisorPoints (int n=1) |
| void | IncrementSpamPoints () |
| bool | Initialize (LPSOCKADDR_IN addr, uint32_t clientnum) |
| bool | IsAdvisorBanned () |
| bool | IsAlive () const |
| | Returns whether the client's character is alive.
|
| bool | IsDuelClient (uint32_t clientnum) |
| bool | IsGM () const |
| bool | IsMute () |
| bool | IsMyPet (gemActor *other) const |
| | Return if other is one of my pets.
|
| bool | IsPlayerClient () |
| bool | IsReady () |
| bool | IsSuperClient () |
| bool | IsZombie () |
| | A zombie client is a client that is prevented from disconnecting because of combat, spellcasting, or defeted.
|
| void | LocationClearDisplaying () |
| bool | LocationIsDisplaying () |
| void | LocationSetIsDisplaying (iSector *sector) |
| | Online edit of location.
|
| void | PathClearDisplaying () |
| psPath * | PathGetPath () |
| bool | PathIsDisplaying () |
| void | PathSetIsDisplaying (iSector *sector) |
| void | PathSetPath (psPath *path) |
| void | RemoveDuelClient (Client *client) |
| void | RemovePet (size_t index) |
| void | SetAccountID (AccountID id) |
| void | SetActor (gemActor *myactor) |
| void | SetAdvisor (bool advisor) |
| | Set this client's advisor status.
|
| void | SetAdvisorBan (bool ban) |
| void | SetAdvisorPoints (int p) |
| void | SetAllowedToDisconnect (bool allowed) |
| | Called from server side to set the allowedToDisconnect flag.
|
| void | SetBuddyListHide (bool hide) |
| | Change whether hiding from buddylists.
|
| void | SetCheatMask (CheatFlags mask, bool flag) |
| | Set the next move as not a cheat, or clear it.
|
| void | SetExchangeID (int ID) |
| void | SetFamiliar (gemActor *familiar) |
| void | SetLastInviteResult (bool result) |
| void | SetLastInviteTime (csTicks time) |
| void | SetMesh (csString nextMesh) |
| void | SetMute (bool flag) |
| | SetMute is the function that toggles the muted flag.
|
| void | SetName (const char *n) |
| | Set the clients name.
|
| void | SetPenalized (bool value) |
| void | SetPID (PID id) |
| void | SetReady (bool rdy) |
| void | SetSecurityLevel (int level) |
| void | SetSelectedLocationID (int id) |
| void | SetSpamPoints (int points) |
| void | SetSuperClient (bool flag) |
| | Allow distinguishing superclients from regular player clients.
|
| void | SetTargetObject (gemObject *object, bool updateClientGUI=false) |
| void | SetWarned () |
| bool | ValidateDistanceToTarget (float range) |
| | Check if distance between client and target is within range.
|
| void | WaypointClearDisplaying () |
| int | WaypointGetNewPathIndex () |
| int | WaypointGetPathIndex () |
| csString & | WaypointGetPathName () |
| bool | WaypointIsDisplaying () |
| void | WaypointSetIsDisplaying (iSector *sector) |
| void | WaypointSetPath (csString &path, int index) |
| | Online edit of paths.
|
| bool | ZombieAllowDisconnect () |
| | Check if a zombie is allowed to disconnect. Called from the network thread so no access to server internal data should be made.
|
| | ~Client () |
Static Public Member Functions |
| static csString | GetIPRange (const char *ipaddr, int octets=3) |
| static void | GetTargetTypeName (int32_t targetType, csString &targetDesc) |
| | Builds a list of target type names associated with a target type bitmap (formed by OR-ing TARGET_TYPES).
|
Public Attributes |
| csTicks | accumulatedLag |
| | For cheat detection.
|
| csTicks | lastGlyphSend |
| csTicks | lastInventorySend |
| csRef< NetPacketQueueRefCount > | outqueue |
Protected Member Functions |
| void | SaveAccountData () |
Protected Attributes |
| AccountID | accountID |
| gemActor * | actor |
| | Pointer to the gemActor object played by this client once a character is logged in and in-game.
|
| int | advisorPoints |
| bool | allowedToDisconnect |
| | Server set this flag when the player isn't casting spells, fighting or doing anythinge else that should prevent the player from disconnecting.
|
| csArray< uint32_t > | duel_clients |
| int | exchangeID |
| | Currently active id of Exchange object managed by Exchange Manager, or 0 if no exchange is active.
|
| FloodBuffRow | floodHistory [floodMax] |
| bool | hasBeenPenalized |
| bool | hasBeenWarned |
| bool | isAdvisor |
| | Store if this client is acting as an advisor.
|
| bool | lastInviteResult |
| csTicks | lastInviteTime |
| csArray< gemNPC * > | listeningNpc |
| csList< iSector * > | locationDisplaySectors |
| csString | mesh |
| MuteBuffable | mute |
| | mute flag
|
| csString | name |
| int | nextFloodHistoryIndex |
| csHash< OrderedMessageChannel * > | orderedMessages |
| | This collection stores queues of ordered messages while we're waiting for an out of order one to arrive.
|
| csList< iSector * > | pathDisplaySectors |
| psPath * | pathPath |
| csArray< PID > | pets |
| PID | playerID |
| bool | ready |
| int | securityLevel |
| int | selectedLocationID |
| int | spamPoints |
| bool | superclient |
| csList< iSector * > | waypointDisplaySectors |
| | Sectors where client is doing online editing.
|
| int | waypointPathIndex |
| csString | waypointPathName |
| bool | zombie |
| | A zombie client is a client where the player has disconnected, but still active due to not finished combat, spellcasting, or defeted.
|
| csTicks | zombietimeout |
Static Protected Attributes |
| static const unsigned int | floodForgiveTime = 10000 |
| | How long to wait before forgiving a repeated message.
|
| static const int | floodMax = 5 |
| | Mute client after 5 repeated messages.
|
| static const int | floodWarn = 3 |
| | Warn client after 3 repeated messages.
|
This class collects data of a netclient.
While the socket data like ip adress and port is managed inside NetManager and not stored here this is the object that will be saved in the ObjectManager and will get an Object ID
Definition at line 95 of file client.h.