AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
BoardCell Struct Reference

Public Member Functions

 BoardCell ()
 
void SetData (ObjectGuid _triggerGUID, uint8 _row, uint8 _col)
 
void Reset ()
 
void SetPiece (Creature *piece)
 

Public Attributes

ObjectGuid triggerGUID
 
ObjectGuid pieceGUID
 
uint32 pieceEntry
 
uint8 row
 
uint8 col
 

Detailed Description

Constructor & Destructor Documentation

◆ BoardCell()

BoardCell::BoardCell ( )
inline
149: pieceEntry(0), row(0), col(0) { }
uint8 row
Definition: boss_chess_event.cpp:154
uint8 col
Definition: boss_chess_event.cpp:155
uint32 pieceEntry
Definition: boss_chess_event.cpp:153

Member Function Documentation

◆ Reset()

void BoardCell::Reset ( )
inline
165 {
167 pieceEntry = 0;
168 }
void Clear()
Definition: ObjectGuid.h:138
ObjectGuid pieceGUID
Definition: boss_chess_event.cpp:152

References ObjectGuid::Clear(), pieceEntry, and pieceGUID.

Referenced by npc_echo_of_medivh::HandleCellInitialData().

◆ SetData()

void BoardCell::SetData ( ObjectGuid  _triggerGUID,
uint8  _row,
uint8  _col 
)
inline
158 {
159 triggerGUID = _triggerGUID;
160 row = _row;
161 col = _col;
162 }
ObjectGuid triggerGUID
Definition: boss_chess_event.cpp:151

References col, row, and triggerGUID.

Referenced by npc_echo_of_medivh::SetupBoard().

◆ SetPiece()

void BoardCell::SetPiece ( Creature piece)
inline
171 {
172 pieceGUID = piece->GetGUID();
173 pieceEntry = piece->GetEntry();
174 }
uint32 GetEntry() const
Definition: Object.h:115
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112

References Object::GetEntry(), Object::GetGUID(), pieceEntry, and pieceGUID.

Referenced by npc_echo_of_medivh::HandleCellInitialData().

Member Data Documentation

◆ col

uint8 BoardCell::col

Referenced by SetData().

◆ pieceEntry

uint32 BoardCell::pieceEntry

◆ pieceGUID

◆ row

uint8 BoardCell::row

Referenced by SetData().

◆ triggerGUID