bf_commandscript::bf_commandscript |
( |
| ) |
|
|
inline |
CommandScript(const char *name)
Definition: ScriptMgr.cpp:1616
std::vector<ChatCommand> bf_commandscript::GetCommands |
( |
| ) |
const |
|
inlineoverridevirtual |
Implements CommandScript.
36 static std::vector<ChatCommand> battlefieldcommandTable =
44 static std::vector<ChatCommand> commandTable =
static bool HandleBattlefieldEnd(ChatHandler *handler, const char *args)
Definition: cs_bf.cpp:73
static bool HandleBattlefieldTimer(ChatHandler *handler, const char *args)
Definition: cs_bf.cpp:146
static bool HandleBattlefieldEnable(ChatHandler *handler, const char *args)
Definition: cs_bf.cpp:95
arena_t NULL
Definition: jemalloc_internal.h:624
static bool HandleBattlefieldStart(ChatHandler *handler, const char *args)
Definition: cs_bf.cpp:51
static bool HandleBattlefieldSwitch(ChatHandler *handler, const char *args)
Definition: cs_bf.cpp:125
98 char* battleid_str = strtok((
char*)args,
" ");
102 battleid = atoi(battleid_str);
void SendGlobalGMSysMessage(const char *str)
Definition: Chat.cpp:207
void ToggleBattlefield(bool enable)
Enable or Disable battlefield.
Definition: Battlefield.h:246
uint32_t uint32
Definition: Define.h:150
Definition: Battlefield.h:196
#define sBattlefieldMgr
Definition: BattlefieldMgr.h:67
bool IsEnabled() const
Return if battlefield is enable.
Definition: Battlefield.h:248
76 char* battleid_str = strtok((
char*)args,
" ");
80 battleid = atoi(battleid_str);
void SendGlobalGMSysMessage(const char *str)
Definition: Chat.cpp:207
void EndBattle(bool endByTimer)
Definition: Battlefield.cpp:329
uint32_t uint32
Definition: Define.h:150
Definition: Battlefield.h:196
#define sBattlefieldMgr
Definition: BattlefieldMgr.h:67
54 char* battleid_str = strtok((
char*)args,
" ");
58 battleid = atoi(battleid_str);
void SendGlobalGMSysMessage(const char *str)
Definition: Chat.cpp:207
uint32_t uint32
Definition: Define.h:150
Definition: Battlefield.h:196
#define sBattlefieldMgr
Definition: BattlefieldMgr.h:67
void StartBattle()
Definition: Battlefield.cpp:309
128 char* battleid_str = strtok((
char*)args,
" ");
132 battleid = atoi(battleid_str);
void SendGlobalGMSysMessage(const char *str)
Definition: Chat.cpp:207
void EndBattle(bool endByTimer)
Definition: Battlefield.cpp:329
uint32_t uint32
Definition: Define.h:150
Definition: Battlefield.h:196
#define sBattlefieldMgr
Definition: BattlefieldMgr.h:67
150 char* battleid_str = strtok((
char*)args,
" ");
153 char* time_str = strtok(
NULL,
" ");
157 battleid = atoi(battleid_str);
159 time = atoi(time_str);
void SendGlobalGMSysMessage(const char *str)
Definition: Chat.cpp:207
arena_t NULL
Definition: jemalloc_internal.h:624
void SetTimer(uint32 timer)
Definition: Battlefield.h:348
uint32_t uint32
Definition: Define.h:150
Definition: Battlefield.h:196
#define sBattlefieldMgr
Definition: BattlefieldMgr.h:67
virtual void SendInitWorldStatesToAll()=0
Send all worldstate data to all player in zone.
The documentation for this class was generated from the following file: