Planeshift
|
Messages sent from server to client containing each detailed combat event. More...
#include <messages.h>
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 |
Messages sent from server to client containing each detailed combat event.
Definition at line 2699 of file messages.h.
anonymous enum |
COMBAT_DODGE | |
COMBAT_BLOCK | |
COMBAT_DAMAGE | |
COMBAT_MISS | |
COMBAT_OUTOFRANGE | |
COMBAT_DEATH | |
COMBAT_DAMAGE_NEARLY_DEAD |
Definition at line 2709 of file messages.h.
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.
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.
accessPointers | A struct to a number of access pointers. |
Implements psMessageCracker.
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.