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

#include "Unit.h"

Public Member Functions

 AttackPosition (Position pos)
 
bool operator== (const int val)
 
int operator= (const int val)
 

Public Attributes

Position _pos
 
bool _taken
 

Detailed Description

Constructor & Destructor Documentation

◆ AttackPosition()

AttackPosition::AttackPosition ( Position  pos)
inline
1190: _pos(std::move(pos)), _taken(false) {}
bool _taken
Definition: Unit.h:1206
Position _pos
Definition: Unit.h:1205

Member Function Documentation

◆ operator=()

int AttackPosition::operator= ( const int  val)
inline
1196 {
1197 if (!val)
1198 {
1199 // _pos = nullptr;
1200 _taken = false;
1201 return 0; // nullptr
1202 }
1203 return 0; // nullptr
1204 };

References _taken.

◆ operator==()

bool AttackPosition::operator== ( const int  val)
inline
1192 {
1193 return !val;
1194 };

Member Data Documentation

◆ _pos

Position AttackPosition::_pos

◆ _taken

bool AttackPosition::_taken

Referenced by operator=().