Planeshift
Public Types | Public Member Functions

psNPCCommandsMessage Class Reference

The message sent from server to superclient after successful login. More...

#include <npcmessages.h>

List of all members.

Public Types

enum  Flags { NONE = 0, INVISIBLE = 1 << 0, INVINCIBLE = 1 << 1, IS_ALIVE = 1 << 2 }
enum  PerceptionTalkType { TALK_SAY, TALK_ME, TALK_MY, TALK_NARRATE }
enum  PerceptionType {
  CMD_TERMINATOR, CMD_ASSESS, CMD_ATTACK, CMD_BUSY,
  CMD_CAST, CMD_DELETE_NPC, CMD_DEQUIP, CMD_DRDATA,
  CMD_DROP, CMD_EMOTE, CMD_ANIMATION, CMD_EQUIP,
  CMD_TEMPORARILY_IMPERVIOUS, CMD_INFO_REPLY, CMD_PICKUP, CMD_RESURRECT,
  CMD_SEQUENCE, CMD_SCRIPT, CMD_SIT, CMD_SPAWN,
  CMD_SPAWN_BUILDING, CMD_TALK, CMD_TRANSFER, CMD_UNBUILD,
  CMD_VISIBILITY, CMD_WORK, CMD_CONTROL, CMD_LOOT,
  PCPT_ANYRANGEPLAYER, PCPT_ASSESS, PCPT_ATTACK, PCPT_CHANGE_BRAIN,
  PCPT_DEATH, PCPT_DEBUG_NPC, PCPT_DEBUG_TRIBE, PCPT_DMG,
  PCPT_FAILED_TO_ATTACK, PCPT_FLAG, PCPT_GROUPATTACK, PCPT_INFO_REQUEST,
  PCPT_INVENTORY, PCPT_LONGRANGEPLAYER, PCPT_NPCCMD, PCPT_OWNER_ACTION,
  PCPT_OWNER_CMD, PCPT_PERCEPT, PCPT_SHORTRANGEPLAYER, PCPT_SPAWNED,
  PCPT_SPELL, PCPT_STAT_DR, PCPT_SPOKEN_TO, PCPT_TALK,
  PCPT_TELEPORT, PCPT_TRANSFER, PCPT_VERYSHORTRANGEPLAYER, PCPT_CHANGE_OWNER
}

Public Member Functions

 PSF_DECLARE_MSG_FACTORY ()
 psNPCCommandsMessage (MsgEntry *message)
 Crack incoming psMessageBytes struct for inbound use.
 psNPCCommandsMessage (uint32_t clientToken, int size)
 Create psMessageBytes struct for outbound use.
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Convert the message into human readable string.

Detailed Description

The message sent from server to superclient after successful login.

It is an XML message of all the basic info needed for all npc's managed by this particular superclient based on the login.

Definition at line 198 of file npcmessages.h.


Member Enumeration Documentation

Enumerator:
NONE 
INVISIBLE 
INVINCIBLE 
IS_ALIVE 

Definition at line 202 of file npcmessages.h.

Enumerator:
TALK_SAY 
TALK_ME 
TALK_MY 
TALK_NARRATE 

Definition at line 272 of file npcmessages.h.

Enumerator:
CMD_TERMINATOR 
CMD_ASSESS 
CMD_ATTACK 
CMD_BUSY 
CMD_CAST 
CMD_DELETE_NPC 
CMD_DEQUIP 
CMD_DRDATA 
CMD_DROP 
CMD_EMOTE 
CMD_ANIMATION 
CMD_EQUIP 
CMD_TEMPORARILY_IMPERVIOUS 
CMD_INFO_REPLY 
CMD_PICKUP 
CMD_RESURRECT 
CMD_SEQUENCE 
CMD_SCRIPT 
CMD_SIT 
CMD_SPAWN 
CMD_SPAWN_BUILDING 
CMD_TALK 
CMD_TRANSFER 
CMD_UNBUILD 
CMD_VISIBILITY 
CMD_WORK 
CMD_CONTROL 
CMD_LOOT 
PCPT_ANYRANGEPLAYER 
PCPT_ASSESS 
PCPT_ATTACK 
PCPT_CHANGE_BRAIN 

Command to superclient used to change the brain of a npc.

PCPT_DEATH 
PCPT_DEBUG_NPC 

Command the superclient to change the debug level of a npc.

PCPT_DEBUG_TRIBE 

Command the superclient to change the debug level of a tribe.

PCPT_DMG 
PCPT_FAILED_TO_ATTACK 
PCPT_FLAG 
PCPT_GROUPATTACK 
PCPT_INFO_REQUEST 
PCPT_INVENTORY 
PCPT_LONGRANGEPLAYER 
PCPT_NPCCMD 
PCPT_OWNER_ACTION 
PCPT_OWNER_CMD 
PCPT_PERCEPT 
PCPT_SHORTRANGEPLAYER 
PCPT_SPAWNED 
PCPT_SPELL 
PCPT_STAT_DR 
PCPT_SPOKEN_TO 
PCPT_TALK 
PCPT_TELEPORT 
PCPT_TRANSFER 
PCPT_VERYSHORTRANGEPLAYER 
PCPT_CHANGE_OWNER 

Definition at line 210 of file npcmessages.h.


Constructor & Destructor Documentation

psNPCCommandsMessage::psNPCCommandsMessage ( uint32_t  clientToken,
int  size 
)

Create psMessageBytes struct for outbound use.

psNPCCommandsMessage::psNPCCommandsMessage ( MsgEntry message)

Crack incoming psMessageBytes struct for inbound use.


Member Function Documentation

psNPCCommandsMessage::PSF_DECLARE_MSG_FACTORY ( )
virtual csString psNPCCommandsMessage::ToString ( NetBase::AccessPointers accessPointers) [virtual]

Convert the message into human readable string.

Returns:
Return a human readable string for the message.

Implements psMessageCracker.


The documentation for this class was generated from the following file: