*Add timer for wintergrasp. 30 minutes per battle. Can only take over fortress during wartime.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-02 00:04:32 -05:00
parent 77889ffa8b
commit 564d2a94e5
2 changed files with 62 additions and 8 deletions
+7
View File
@@ -93,6 +93,8 @@ class OPvPWintergrasp : public OutdoorPvP
void HandleKill(Player *killer, Unit *victim);
void SendInitWorldStatesTo(Player *player = NULL);
bool Update(uint32 diff);
protected:
TeamId m_defender;
int32 m_tenacityStack;
@@ -104,12 +106,17 @@ class OPvPWintergrasp : public OutdoorPvP
TeamPairMap m_creEntryPair, m_goDisplayPair;
bool m_wartime;
uint32 m_timer;
void ChangeDefender();
void UpdateTenacityStack();
bool UpdateCreatureInfo(Creature *creature);
void UpdateAllWorldObject();
bool UpdateGameObjectInfo(GameObject *go);
void RebuildAllBuildings();
};
#endif