Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
BattlegroundNA.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_BATTLEGROUNDNA_H
7
#define SF_BATTLEGROUNDNA_H
8
9
#include "
Battleground.h
"
10
11
enum
BattlegroundNAObjectTypes
12
{
13
BG_NA_OBJECT_DOOR_1
= 0,
14
BG_NA_OBJECT_DOOR_2
= 1,
15
BG_NA_OBJECT_DOOR_3
= 2,
16
BG_NA_OBJECT_DOOR_4
= 3,
17
BG_NA_OBJECT_BUFF_1
= 4,
18
BG_NA_OBJECT_BUFF_2
= 5,
19
BG_NA_OBJECT_MAX
= 6
20
};
21
22
enum
BattlegroundNAObjects
23
{
24
BG_NA_OBJECT_TYPE_DOOR_1
= 183978,
25
BG_NA_OBJECT_TYPE_DOOR_2
= 183980,
26
BG_NA_OBJECT_TYPE_DOOR_3
= 183977,
27
BG_NA_OBJECT_TYPE_DOOR_4
= 183979,
28
BG_NA_OBJECT_TYPE_BUFF_1
= 184663,
29
BG_NA_OBJECT_TYPE_BUFF_2
= 184664
30
};
31
32
class
BattlegroundNA
:
public
Battleground
33
{
34
public
:
35
BattlegroundNA
();
36
~BattlegroundNA
() { }
37
38
/* inherited from BattlegroundClass */
39
void
AddPlayer
(
Player
* player)
OVERRIDE
;
40
void
StartingEventCloseDoors
()
OVERRIDE
;
41
void
StartingEventOpenDoors
()
OVERRIDE
;
42
43
void
RemovePlayer
(
Player
* player,
uint64
guid,
uint32
team)
OVERRIDE
;
44
void
HandleAreaTrigger
(
Player
* Source,
uint32
Trigger)
OVERRIDE
;
45
bool
SetupBattleground
()
OVERRIDE
;
46
void
Reset
()
OVERRIDE
;
47
void
FillInitialWorldStates
(
WorldStateBuilder
& builder)
OVERRIDE
;
48
void
HandleKillPlayer
(
Player
* player,
Player
* killer)
OVERRIDE
;
49
};
50
#endif
Battleground.h
BattlegroundNAObjectTypes
BattlegroundNAObjectTypes
Definition
BattlegroundNA.h:12
BG_NA_OBJECT_DOOR_1
@ BG_NA_OBJECT_DOOR_1
Definition
BattlegroundNA.h:13
BG_NA_OBJECT_DOOR_4
@ BG_NA_OBJECT_DOOR_4
Definition
BattlegroundNA.h:16
BG_NA_OBJECT_MAX
@ BG_NA_OBJECT_MAX
Definition
BattlegroundNA.h:19
BG_NA_OBJECT_BUFF_2
@ BG_NA_OBJECT_BUFF_2
Definition
BattlegroundNA.h:18
BG_NA_OBJECT_DOOR_2
@ BG_NA_OBJECT_DOOR_2
Definition
BattlegroundNA.h:14
BG_NA_OBJECT_BUFF_1
@ BG_NA_OBJECT_BUFF_1
Definition
BattlegroundNA.h:17
BG_NA_OBJECT_DOOR_3
@ BG_NA_OBJECT_DOOR_3
Definition
BattlegroundNA.h:15
BattlegroundNAObjects
BattlegroundNAObjects
Definition
BattlegroundNA.h:23
BG_NA_OBJECT_TYPE_DOOR_1
@ BG_NA_OBJECT_TYPE_DOOR_1
Definition
BattlegroundNA.h:24
BG_NA_OBJECT_TYPE_DOOR_2
@ BG_NA_OBJECT_TYPE_DOOR_2
Definition
BattlegroundNA.h:25
BG_NA_OBJECT_TYPE_BUFF_2
@ BG_NA_OBJECT_TYPE_BUFF_2
Definition
BattlegroundNA.h:29
BG_NA_OBJECT_TYPE_BUFF_1
@ BG_NA_OBJECT_TYPE_BUFF_1
Definition
BattlegroundNA.h:28
BG_NA_OBJECT_TYPE_DOOR_3
@ BG_NA_OBJECT_TYPE_DOOR_3
Definition
BattlegroundNA.h:26
BG_NA_OBJECT_TYPE_DOOR_4
@ BG_NA_OBJECT_TYPE_DOOR_4
Definition
BattlegroundNA.h:27
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
BattlegroundNA::~BattlegroundNA
~BattlegroundNA()
Definition
BattlegroundNA.h:36
BattlegroundNA::SetupBattleground
bool SetupBattleground() OVERRIDE
Definition
BattlegroundNA.cpp:104
BattlegroundNA::FillInitialWorldStates
void FillInitialWorldStates(WorldStateBuilder &builder) OVERRIDE
Definition
BattlegroundNA.cpp:92
BattlegroundNA::StartingEventOpenDoors
void StartingEventOpenDoors() OVERRIDE
Definition
BattlegroundNA.cpp:34
BattlegroundNA::Reset
void Reset() OVERRIDE
Definition
BattlegroundNA.cpp:98
BattlegroundNA::RemovePlayer
void RemovePlayer(Player *player, uint64 guid, uint32 team) OVERRIDE
Definition
BattlegroundNA.cpp:50
BattlegroundNA::AddPlayer
void AddPlayer(Player *player) OVERRIDE
Definition
BattlegroundNA.cpp:43
BattlegroundNA::StartingEventCloseDoors
void StartingEventCloseDoors() OVERRIDE
Definition
BattlegroundNA.cpp:28
BattlegroundNA::BattlegroundNA
BattlegroundNA()
Definition
BattlegroundNA.cpp:13
BattlegroundNA::HandleAreaTrigger
void HandleAreaTrigger(Player *Source, uint32 Trigger) OVERRIDE
Definition
BattlegroundNA.cpp:76
BattlegroundNA::HandleKillPlayer
void HandleKillPlayer(Player *player, Player *killer) OVERRIDE
Definition
BattlegroundNA.cpp:59
Player
Definition
Player.h:1289
WorldStateBuilder
Definition
WorldStateBuilder.h:16
src
server
game
Battlegrounds
Zones
BattlegroundNA.h
Generated on
for Project SkyFire Core by
1.17.0