Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
BattlegroundVOP.h
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#ifndef SF_BATTLEGROUND_VOP_H
7#define SF_BATTLEGROUND_VOP_H
8
9#include "Battleground.h"
10
11#define BG_VOP_MAX_TEAM_SCORE 1600
12
25
38
49
64
65// Tick intervals and given points: case 0, 1, 2, 3, 4
66const uint32 BG_VOP_TickIntervals[5] = { 15000, 12000, 9000, 6000, 3000 };
67const uint32 BG_VOP_TickPoints[5] = { 0, 10, 10, 10, 10 };
68
71
79
81{
82public:
85
86 /* inherited from BattlegroundClass */
87 void AddPlayer(Player* player) OVERRIDE;
90 /* Battleground Events */
91 void EventPlayerClickedOnFlag(Player* Source, GameObject* target_obj) OVERRIDE;
92 void RemovePlayer(Player* player, uint64 guid, uint32 team) OVERRIDE;
93 void HandleKillPlayer(Player* player, Player* killer) OVERRIDE;
96 void Reset() OVERRIDE;
98 void EndBattleground(uint32 winner);
99 void UpdatePlayerScore(Player* Source, uint32 type, uint32 value, bool doAddHonor = true) OVERRIDE;
102 void PostUpdateImpl(uint32 diff) OVERRIDE;
103
104private:
110};
111
112#endif
#define BG_TEAMS_COUNT
const uint32 BG_VOP_TickIntervals[5]
const uint32 BG_VOP_TickPoints[5]
const uint32 BG_VOP_PK_VP
BG_VOP_Objets_Entry
@ BG_VOP_OBJECT_ORB_4_ENTRY
@ BG_VOP_OBJECT_ORB_2_ENTRY
@ BG_VOP_OBJECT_DOOR_ENTRY
@ BG_VOP_OBJECT_ORB_3_ENTRY
@ BG_VOP_OBJECT_ORB_1_ENTRY
BG_VOP_WorldStates
@ BG_VOP_OP_RESOURCES_MAX
@ BG_VOP_OP_RESOURCES_A
@ BG_VOP_OP_RESOURCES_H
BG_VOP_Objects
@ BG_VOP_OBJECT_MAX
@ BG_VOP_OBJECT_DOOR_H
@ BG_VOP_OBJECT_ORB_3
@ BG_VOP_OBJECT_ORB_4
@ BG_VOP_OBJECT_ORB_1
@ BG_VOP_OBJECT_BUFF_SOUTH
@ BG_VOP_OBJECT_ORB_2
@ BG_VOP_OBJECT_BUFF_NORTH
@ BG_VOP_OBJECT_DOOR_A
const uint32 BG_VOP_SOUND_ORB
BG_VOP_Spells
@ BG_VOP_SPELL_ORB_PICKED_UP_1
@ BG_VOP_SPELL_ORB_PICKED_UP_3
@ BG_VOP_SPELL_ORB_AURA_1
@ BG_VOP_SPELL_ORB_PICKED_UP_4
@ BG_VOP_SPELL_ORB_AURA_4
@ BG_VOP_SPELL_ORB_AURA_2
@ BG_VOP_SPELL_ORB_AURA_3
@ BG_VOP_SPELL_ORB_PICKED_UP_2
BG_VOP_Creatures
@ BG_VOP_CREATURE_MAX
@ BG_VOP_CREATURE_SPIRIT_2
@ BG_VOP_CREATURE_ORB_AURA_1
@ BG_VOP_CREATURE_ORB_AURA_4
@ BG_VOP_CREATURE_SPIRIT_1
@ BG_VOP_CREATURE_ORB_AURA_2
@ BG_VOP_CREATURE_ORB_AURA_3
std::uint32_t uint32
Definition Define.h:77
#define OVERRIDE
Definition Define.h:60
std::uint64_t uint64
Definition Define.h:76
void FillInitialWorldStates(WorldStateBuilder &builder) OVERRIDE
void HandleKillPlayer(Player *player, Player *killer) OVERRIDE
void AddPlayer(Player *player) OVERRIDE
void EndBattleground(uint32 winner)
void UpdateTeamScore(uint32 Team)
void RemovePlayer(Player *player, uint64 guid, uint32 team) OVERRIDE
void EventPlayerClickedOnFlag(Player *Source, GameObject *target_obj) OVERRIDE
WorldSafeLocsEntry const * GetClosestGraveYard(Player *player) OVERRIDE
uint32 m_lastTick[BG_TEAMS_COUNT]
uint32 m_HonorScoreTics[BG_TEAMS_COUNT]
void Reset() OVERRIDE
void StartingEventOpenDoors() OVERRIDE
void PostUpdateImpl(uint32 diff) OVERRIDE
Post-update hook.
uint32 GetPrematureWinner() OVERRIDE
bool m_TeamScores500Disadvantage[BG_TEAMS_COUNT]
void StartingEventCloseDoors() OVERRIDE
void UpdatePlayerScore(Player *Source, uint32 type, uint32 value, bool doAddHonor=true) OVERRIDE
bool SetupBattleground() OVERRIDE