#include <messages.h>
|
bool | IsNewerThan (uint8_t oldCounter) |
| Returns true if this message is newer than the passed DR sequence value. More...
|
|
void | operator= (psDRMessage &other) |
|
| psDRMessage () |
|
| psDRMessage (uint32_t client, EID mappedid, uint8_t counter, NetBase::AccessPointers *accessPointers, psLinearMovement *linmove, uint8_t mode=0) |
|
| psDRMessage (uint32_t client, EID mappedid, bool on_ground, uint8_t mode, uint8_t counter, const csVector3 &pos, float yrot, iSector *sector, csString sectorName, const csVector3 &vel, csVector3 &worldVel, float ang_vel, NetBase::AccessPointers *accessPointers) |
|
| psDRMessage (void *data, int size, NetBase::AccessPointers *accessPointers) |
|
| psDRMessage (MsgEntry *me, NetBase::AccessPointers *accessPointers) |
|
| PSF_DECLARE_MSG_FACTORY () |
|
virtual csString | ToString (NetBase::AccessPointers *accessPointers) |
| Converts the message into human readable string. More...
|
|
void | FireEvent () |
| Publishes the message to the local program. More...
|
|
virtual csString | GetMessageTypeName () const =0 |
| Gets the name of the message type. More...
|
|
void | Multicast (csArray< PublishDestination > &multi, uint32_t except, float range) |
| Multicasts the message to all current connections. More...
|
|
| psMessageCracker () |
|
void | SendMessage () |
| Sends the message to the client/server. More...
|
|
virtual | ~psMessageCracker () |
|
|
void | CreateMsgEntry (uint32_t client, NetBase::AccessPointers *accessPointers, iSector *sector, csString sectorName) |
|
void | ReadDRInfo (MsgEntry *me, NetBase::AccessPointers *accessPointers) |
|
void | WriteDRInfo (uint32_t client, EID mappedid, bool on_ground, uint8_t mode, uint8_t counter, const csVector3 &pos, float yrot, iSector *sector, csString sectorName, const csVector3 &vel, csVector3 &worldVel, float ang_vel, csStringSet *msgstrings, bool donewriting=true) |
|
Definition at line 3129 of file messages.h.
Flags indicating what components are packed in this message.
Enumerator |
---|
NOT_MOVING |
|
ACTOR_MODE |
|
ANG_VELOCITY |
|
X_VELOCITY |
|
Y_VELOCITY |
|
Z_VELOCITY |
|
X_WORLDVELOCITY |
|
Y_WORLDVELOCITY |
|
Z_WORLDVELOCITY |
|
ALL_DATA |
|
Definition at line 3141 of file messages.h.
psDRMessage::psDRMessage |
( |
| ) |
|
|
inline |
psDRMessage::psDRMessage |
( |
uint32_t |
client, |
|
|
EID |
mappedid, |
|
|
bool |
on_ground, |
|
|
uint8_t |
mode, |
|
|
uint8_t |
counter, |
|
|
const csVector3 & |
pos, |
|
|
float |
yrot, |
|
|
iSector * |
sector, |
|
|
csString |
sectorName, |
|
|
const csVector3 & |
vel, |
|
|
csVector3 & |
worldVel, |
|
|
float |
ang_vel, |
|
|
NetBase::AccessPointers * |
accessPointers |
|
) |
| |
void psDRMessage::CreateMsgEntry |
( |
uint32_t |
client, |
|
|
NetBase::AccessPointers * |
accessPointers, |
|
|
iSector * |
sector, |
|
|
csString |
sectorName |
|
) |
| |
|
protected |
static uint8_t psDRMessage::GetDataFlags |
( |
const csVector3 & |
v, |
|
|
const csVector3 & |
wv, |
|
|
float |
yrv, |
|
|
uint8_t |
mode |
|
) |
| |
|
staticprotected |
bool psDRMessage::IsNewerThan |
( |
uint8_t |
oldCounter | ) |
|
Returns true if this message is newer than the passed DR sequence value.
psDRMessage::PSF_DECLARE_MSG_FACTORY |
( |
| ) |
|
Converts the message into human readable string.
- Parameters
-
accessPointers | A struct to a number of access pointers. |
- Returns
- Return a human readable string for the message.
Implements psMessageCracker.
Reimplemented in psPersistActor.
void psDRMessage::WriteDRInfo |
( |
uint32_t |
client, |
|
|
EID |
mappedid, |
|
|
bool |
on_ground, |
|
|
uint8_t |
mode, |
|
|
uint8_t |
counter, |
|
|
const csVector3 & |
pos, |
|
|
float |
yrot, |
|
|
iSector * |
sector, |
|
|
csString |
sectorName, |
|
|
const csVector3 & |
vel, |
|
|
csVector3 & |
worldVel, |
|
|
float |
ang_vel, |
|
|
csStringSet * |
msgstrings, |
|
|
bool |
donewriting = true |
|
) |
| |
|
protected |
float psDRMessage::ang_vel |
Angular velocity of Yrot member changing.
Definition at line 3169 of file messages.h.
uint8_t psDRMessage::counter |
EID psDRMessage::entityid |
The mapped id of the entity in question.
Definition at line 3170 of file messages.h.
uint8_t psDRMessage::mode |
bool psDRMessage::on_ground |
Helps determine whether gravity applies.
Definition at line 3161 of file messages.h.
csVector3 psDRMessage::pos |
iSector* psDRMessage::sector |
csString psDRMessage::sectorName |
csVector3 psDRMessage::vel |
csVector3 psDRMessage::worldVel |
Rotation around Y-axis in radians.
Definition at line 3166 of file messages.h.
The documentation for this class was generated from the following file: