Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
BattlegroundTV.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_BATTLEGROUNDTV_H
7
#define SF_BATTLEGROUNDTV_H
8
9
#include "
Battleground.h
"
10
11
enum
BattlegroundTVObjectTypes
12
{
13
BG_TV_OBJECT_DOOR_1
= 0,
14
BG_TV_OBJECT_DOOR_2
= 1,
15
BG_TV_OBJECT_BUFF_1
= 2,
16
BG_TV_OBJECT_BUFF_2
= 3,
17
BG_TV_OBJECT_MAX
= 4
18
};
19
20
enum
BattlegroundTVObjects
21
{
22
BG_TV_OBJECT_TYPE_DOOR_1
= 213196,
23
BG_TV_OBJECT_TYPE_DOOR_2
= 213197,
24
BG_TV_OBJECT_TYPE_BUFF_1
= 184663,
25
BG_TV_OBJECT_TYPE_BUFF_2
= 184664
26
};
27
28
class
BattlegroundTV
:
public
Battleground
29
{
30
public
:
31
BattlegroundTV
();
32
~BattlegroundTV
() { }
33
34
/* inherited from BattlegroundClass */
35
void
AddPlayer
(
Player
* player)
OVERRIDE
;
36
void
StartingEventCloseDoors
()
OVERRIDE
;
37
void
StartingEventOpenDoors
()
OVERRIDE
;
38
39
void
RemovePlayer
(
Player
* player,
uint64
guid,
uint32
team)
OVERRIDE
;
40
void
HandleAreaTrigger
(
Player
* Source,
uint32
Trigger)
OVERRIDE
;
41
bool
SetupBattleground
()
OVERRIDE
;
42
void
Reset
()
OVERRIDE
;
43
void
FillInitialWorldStates
(
WorldStateBuilder
& builder)
OVERRIDE
;
44
void
HandleKillPlayer
(
Player
* player,
Player
* killer)
OVERRIDE
;
45
46
/* Scorekeeping */
47
void
UpdatePlayerScore
(
Player
* Source,
uint32
type,
uint32
value,
bool
doAddHonor = true)
OVERRIDE
;
48
};
49
#endif
Battleground.h
BattlegroundTVObjects
BattlegroundTVObjects
Definition
BattlegroundTV.h:21
BG_TV_OBJECT_TYPE_BUFF_2
@ BG_TV_OBJECT_TYPE_BUFF_2
Definition
BattlegroundTV.h:25
BG_TV_OBJECT_TYPE_BUFF_1
@ BG_TV_OBJECT_TYPE_BUFF_1
Definition
BattlegroundTV.h:24
BG_TV_OBJECT_TYPE_DOOR_1
@ BG_TV_OBJECT_TYPE_DOOR_1
Definition
BattlegroundTV.h:22
BG_TV_OBJECT_TYPE_DOOR_2
@ BG_TV_OBJECT_TYPE_DOOR_2
Definition
BattlegroundTV.h:23
BattlegroundTVObjectTypes
BattlegroundTVObjectTypes
Definition
BattlegroundTV.h:12
BG_TV_OBJECT_DOOR_2
@ BG_TV_OBJECT_DOOR_2
Definition
BattlegroundTV.h:14
BG_TV_OBJECT_BUFF_2
@ BG_TV_OBJECT_BUFF_2
Definition
BattlegroundTV.h:16
BG_TV_OBJECT_BUFF_1
@ BG_TV_OBJECT_BUFF_1
Definition
BattlegroundTV.h:15
BG_TV_OBJECT_DOOR_1
@ BG_TV_OBJECT_DOOR_1
Definition
BattlegroundTV.h:13
BG_TV_OBJECT_MAX
@ BG_TV_OBJECT_MAX
Definition
BattlegroundTV.h:17
uint32
std::uint32_t uint32
Definition
Define.h:77
OVERRIDE
#define OVERRIDE
Definition
Define.h:60
uint64
std::uint64_t uint64
Definition
Define.h:76
Battleground::Battleground
Battleground()
Definition
Battleground.cpp:105
BattlegroundTV::Reset
void Reset() OVERRIDE
Definition
BattlegroundTV.cpp:101
BattlegroundTV::FillInitialWorldStates
void FillInitialWorldStates(WorldStateBuilder &builder) OVERRIDE
Definition
BattlegroundTV.cpp:95
BattlegroundTV::HandleKillPlayer
void HandleKillPlayer(Player *player, Player *killer) OVERRIDE
Definition
BattlegroundTV.cpp:62
BattlegroundTV::UpdatePlayerScore
void UpdatePlayerScore(Player *Source, uint32 type, uint32 value, bool doAddHonor=true) OVERRIDE
Definition
BattlegroundTV.cpp:123
BattlegroundTV::StartingEventCloseDoors
void StartingEventCloseDoors() OVERRIDE
Definition
BattlegroundTV.cpp:28
BattlegroundTV::~BattlegroundTV
~BattlegroundTV()
Definition
BattlegroundTV.h:32
BattlegroundTV::RemovePlayer
void RemovePlayer(Player *player, uint64 guid, uint32 team) OVERRIDE
Definition
BattlegroundTV.cpp:53
BattlegroundTV::BattlegroundTV
BattlegroundTV()
Definition
BattlegroundTV.cpp:13
BattlegroundTV::HandleAreaTrigger
void HandleAreaTrigger(Player *Source, uint32 Trigger) OVERRIDE
Definition
BattlegroundTV.cpp:79
BattlegroundTV::SetupBattleground
bool SetupBattleground() OVERRIDE
Definition
BattlegroundTV.cpp:107
BattlegroundTV::StartingEventOpenDoors
void StartingEventOpenDoors() OVERRIDE
Definition
BattlegroundTV.cpp:37
BattlegroundTV::AddPlayer
void AddPlayer(Player *player) OVERRIDE
Definition
BattlegroundTV.cpp:46
Player
Definition
Player.h:1289
WorldStateBuilder
Definition
WorldStateBuilder.h:16
src
server
game
Battlegrounds
Zones
BattlegroundTV.h
Generated on
for Project SkyFire Core by
1.17.0