mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 13:37:08 +00:00
Movement packets cleanup.
This commit is contained in:
parent
60f8b3874d
commit
b85417df73
16 changed files with 436 additions and 485 deletions
|
|
@ -154,7 +154,7 @@ class MANGOS_DLL_SPEC Object
|
|||
|
||||
void BuildValuesUpdateBlockForPlayer( UpdateData *data, Player *target ) const;
|
||||
void BuildOutOfRangeUpdateBlock( UpdateData *data ) const;
|
||||
void BuildMovementUpdateBlock( UpdateData * data, uint32 flags = 0 ) const;
|
||||
void BuildMovementUpdateBlock( UpdateData * data, uint16 flags = 0 ) const;
|
||||
|
||||
virtual void DestroyForPlayer( Player *target, bool anim = false ) const;
|
||||
|
||||
|
|
@ -288,7 +288,7 @@ class MANGOS_DLL_SPEC Object
|
|||
|
||||
void ApplyModFlag64( uint16 index, uint64 flag, bool apply)
|
||||
{
|
||||
if(apply) SetFlag64(index,flag); else RemoveFlag64(index,flag);
|
||||
if(apply) SetFlag64(index,flag); else RemoveFlag64(index, flag);
|
||||
}
|
||||
|
||||
void ClearUpdateMask(bool remove);
|
||||
|
|
@ -312,7 +312,7 @@ class MANGOS_DLL_SPEC Object
|
|||
|
||||
virtual void _SetCreateBits(UpdateMask *updateMask, Player *target) const;
|
||||
|
||||
void BuildMovementUpdate(ByteBuffer * data, uint16 updateFlags, uint32 moveFlags ) const;
|
||||
void BuildMovementUpdate(ByteBuffer * data, uint16 updateFlags) const;
|
||||
void BuildValuesUpdate(uint8 updatetype, ByteBuffer *data, UpdateMask *updateMask, Player *target ) const;
|
||||
void BuildUpdateDataForPlayer(Player* pl, UpdateDataMapType& update_players);
|
||||
|
||||
|
|
@ -358,20 +358,8 @@ class MANGOS_DLL_SPEC WorldObject : public Object
|
|||
|
||||
void _Create( uint32 guidlow, HighGuid guidhigh, uint32 phaseMask);
|
||||
|
||||
void Relocate(float x, float y, float z, float orientation)
|
||||
{
|
||||
m_positionX = x;
|
||||
m_positionY = y;
|
||||
m_positionZ = z;
|
||||
m_orientation = orientation;
|
||||
}
|
||||
|
||||
void Relocate(float x, float y, float z)
|
||||
{
|
||||
m_positionX = x;
|
||||
m_positionY = y;
|
||||
m_positionZ = z;
|
||||
}
|
||||
void Relocate(float x, float y, float z, float orientation);
|
||||
void Relocate(float x, float y, float z);
|
||||
|
||||
void SetOrientation(float orientation) { m_orientation = orientation; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue