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
1178: _pos(std::move(pos)), _taken(false) {}
bool _taken
Definition: Unit.h:1194
Position _pos
Definition: Unit.h:1193

Member Function Documentation

◆ operator=()

int AttackPosition::operator= ( const int  val)
inline
1184 {
1185 if (!val)
1186 {
1187 // _pos = nullptr;
1188 _taken = false;
1189 return 0; // nullptr
1190 }
1191 return 0; // nullptr
1192 };

References _taken.

◆ operator==()

bool AttackPosition::operator== ( const int  val)
inline
1180 {
1181 return !val;
1182 };

Member Data Documentation

◆ _pos

Position AttackPosition::_pos

◆ _taken

bool AttackPosition::_taken

Referenced by operator=().