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

#include "Player.h"

Public Member Functions

 PvPInfo ()=default
 

Public Attributes

bool IsHostile {false}
 
bool IsInHostileArea {false}
 
bool IsInNoPvPArea {false}
 

‍Marks if player is in an area which forces PvP flag

More...
 
bool IsInFFAPvPArea {false}
 

‍Marks if player is in a sanctuary or friendly capital city

More...
 
time_t EndTimer {0}
 

‍Marks if player is in an FFAPvP area (such as Gurubashi Arena)

More...
 
time_t FFAPvPEndTimer {0}
 

‍Time when player unflags himself for PvP (flag removed after 5 minutes)

More...
 

Detailed Description

Constructor & Destructor Documentation

◆ PvPInfo()

PvPInfo::PvPInfo ( )
default

Member Data Documentation

◆ EndTimer

time_t PvPInfo::EndTimer {0}

‍Marks if player is in an FFAPvP area (such as Gurubashi Arena)

Referenced by Player::UpdateFFAPvPState(), Player::UpdatePvP(), Player::UpdatePvPFlag(), and Player::UpdatePvPState().

◆ FFAPvPEndTimer

time_t PvPInfo::FFAPvPEndTimer {0}

‍Time when player unflags himself for PvP (flag removed after 5 minutes)

Referenced by Player::UpdateFFAPvPFlag(), and Player::UpdateFFAPvPState().

◆ IsHostile

◆ IsInFFAPvPArea

bool PvPInfo::IsInFFAPvPArea {false}

‍Marks if player is in a sanctuary or friendly capital city

Referenced by Player::UpdateArea(), and Player::UpdateFFAPvPState().

◆ IsInHostileArea

◆ IsInNoPvPArea

bool PvPInfo::IsInNoPvPArea {false}

‍Marks if player is in an area which forces PvP flag

Referenced by Player::UpdateArea(), Player::UpdateFFAPvPState(), and Player::UpdateZone().