Planeshift
Public Types | Public Member Functions | Public Attributes

psCombatEventMessage Class Reference

Messages sent from server to client containing each detailed combat event. More...

#include <messages.h>

List of all members.

Public Types

enum  {
  COMBAT_DODGE, COMBAT_BLOCK, COMBAT_DAMAGE, COMBAT_MISS,
  COMBAT_OUTOFRANGE, COMBAT_DEATH, COMBAT_DAMAGE_NEARLY_DEAD
}

Public Member Functions

 psCombatEventMessage (uint32_t clientnum, int event_type, EID attacker, EID target, int target_location, float damage, int attack_anim, int defense_anim)
 Create psMessageBytes struct for outbound use.
 psCombatEventMessage (MsgEntry *message)
 Crack incoming psMessageBytes struct for inbound use.
 PSF_DECLARE_MSG_FACTORY ()
void SetClientNum (int cnum)
virtual csString ToString (NetBase::AccessPointers *accessPointers)
 Converts the message into human readable string.

Public Attributes

int attack_anim
EID attacker_id
float damage
int defense_anim
int event_type
EID target_id
int target_location

Detailed Description

Messages sent from server to client containing each detailed combat event.

Definition at line 2699 of file messages.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
COMBAT_DODGE 
COMBAT_BLOCK 
COMBAT_DAMAGE 
COMBAT_MISS 
COMBAT_OUTOFRANGE 
COMBAT_DEATH 
COMBAT_DAMAGE_NEARLY_DEAD 

Definition at line 2709 of file messages.h.


Constructor & Destructor Documentation

psCombatEventMessage::psCombatEventMessage ( uint32_t  clientnum,
int  event_type,
EID  attacker,
EID  target,
int  target_location,
float  damage,
int  attack_anim,
int  defense_anim 
)

Create psMessageBytes struct for outbound use.

psCombatEventMessage::psCombatEventMessage ( MsgEntry message)

Crack incoming psMessageBytes struct for inbound use.


Member Function Documentation

psCombatEventMessage::PSF_DECLARE_MSG_FACTORY ( )
void psCombatEventMessage::SetClientNum ( int  cnum)
virtual csString psCombatEventMessage::ToString ( NetBase::AccessPointers accessPointers) [virtual]

Converts the message into human readable string.

Parameters:
accessPointersA struct to a number of access pointers.
Returns:
Return a human readable string for the message.

Implements psMessageCracker.


Member Data Documentation

Definition at line 2707 of file messages.h.

Definition at line 2703 of file messages.h.

Definition at line 2706 of file messages.h.

Definition at line 2708 of file messages.h.

Definition at line 2702 of file messages.h.

Definition at line 2704 of file messages.h.

Definition at line 2705 of file messages.h.


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