aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGround.h
diff options
context:
space:
mode:
authorRat <none@none>2010-06-01 23:55:09 +0200
committerRat <none@none>2010-06-01 23:55:09 +0200
commitad753b3f677c6280d48391e4bc550eedc9ce7a6e (patch)
tree255cfefa5d78374811cec2a453ee2ee6c1534d8a /src/game/BattleGround.h
parentd53f91ff327ea4f73d7dd16e7246d50150c2458b (diff)
SOTA update
-proper warning text (under attack, destroyed, capture..) -proper icons on map for gate states -fixed second round starting --HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGround.h')
-rw-r--r--src/game/BattleGround.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/game/BattleGround.h b/src/game/BattleGround.h
index 38f4a0f443d..6f46b6f8f6d 100644
--- a/src/game/BattleGround.h
+++ b/src/game/BattleGround.h
@@ -258,6 +258,15 @@ enum BattleGroundStartingEventsIds
};
#define BG_STARTING_EVENT_COUNT 4
+enum BG_OBJECT_DMG_HIT_TYPE
+{
+ BG_OBJECT_DMG_HIT_TYPE_JUST_DAMAGED = 0,
+ BG_OBJECT_DMG_HIT_TYPE_DAMAGED = 1,
+ BG_OBJECT_DMG_HIT_TYPE_JUST_HIGH_DAMAGED = 2,
+ BG_OBJECT_DMG_HIT_TYPE_HIGH_DAMAGED = 3,
+ BG_OBJECT_DMG_HIT_TYPE_JUST_DESTROYED = 4
+};
+
enum GroupJoinBattlegroundResult
{
// positive values are indexes in BattlemasterList.dbc
@@ -330,6 +339,8 @@ class BattleGround
{
}
+ virtual void DestroyGate(Player* pl, GameObject* go, uint32 destroyedEvent) {}
+
/* achievement req. */
virtual bool IsAllNodesConrolledByTeam(uint32 /*team*/) const { return false; }
bool IsTeamScoreInRange(uint32 team, uint32 minScore, uint32 maxScore) const;
@@ -468,6 +479,7 @@ class BattleGround
void EndBattleGround(uint32 winner);
void BlockMovement(Player *plr);
+ void SendWarningToAll(int32 entry, ...);
void SendMessageToAll(int32 entry, ChatMsg type, Player const* source = NULL);
void PSendMessageToAll(int32 entry, ChatMsg type, Player const* source, ...);
@@ -512,7 +524,7 @@ class BattleGround
virtual void EventPlayerCapturedFlag(Player* /*player*/) {}
void EventPlayerLoggedIn(Player* player, uint64 plr_guid);
void EventPlayerLoggedOut(Player* player);
- virtual void EventPlayerDamagedGO(Player* /*player*/, GameObject* /*target_obj*/, uint32 /*eventId*/) {}
+ virtual void EventPlayerDamagedGO(Player* plr, GameObject* go, uint8 hitType, uint32 destroyedEvent) {}
virtual void EventPlayerUsedGO(Player* /*player*/, GameObject* /*go*/){}
/* Death related */