[7529] Hide some implementation details for fall damage calculation and breath timers. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-24 09:46:45 -06:00
parent cd66e85ed1
commit 208398017a
3 changed files with 19 additions and 8 deletions
+9 -6
View File
@@ -1958,8 +1958,7 @@ class TRINITY_DLL_SPEC Player : public Unit
/*** VARIOUS SYSTEMS ***/
/*********************************************************/
MovementInfo m_movementInfo;
uint32 m_lastFallTime;
float m_lastFallZ;
void UpdateFallInformationIfNeed(MovementInfo const& minfo,uint16 opcode);
Unit *m_mover;
WorldObject *m_seer;
void SetFallInformation(uint32 time, float z)
@@ -2210,10 +2209,6 @@ class TRINITY_DLL_SPEC Player : public Unit
void StopMirrorTimer(MirrorTimerType Type);
void HandleDrowning(uint32 time_diff);
int32 getMaxTimer(MirrorTimerType timer);
int32 m_MirrorTimer[MAX_TIMERS];
uint8 m_MirrorTimerFlags;
uint8 m_MirrorTimerFlagsLast;
bool m_isInWater;
/*********************************************************/
/*** HONOR SYSTEM ***/
@@ -2379,6 +2374,14 @@ class TRINITY_DLL_SPEC Player : public Unit
void UpdateCharmedAI();
UnitAI *i_AI;
uint32 m_lastFallTime;
float m_lastFallZ;
int32 m_MirrorTimer[MAX_TIMERS];
uint8 m_MirrorTimerFlags;
uint8 m_MirrorTimerFlagsLast;
bool m_isInWater;
};
void AddItemsSetItem(Player*player,Item *item);