OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SpellBuff Struct Reference

#include <SpellBuff.h>

Public Member Functions

bool Apply (Time time, CharacterSkillMastery uSkillMastery, int uPower, int uOverlayID, uint8_t caster)
 
void Reset ()
 
bool IsBuffExpiredToTime (Time time)
 
bool Active () const
 
bool Inactive () const
 
bool Expired () const
 
TimeGetExpireTime ()
 

Public Attributes

Time expireTime
 
uint16_t power = 0
 
CharacterSkillMastery skillMastery = CHARACTER_SKILL_MASTERY_NONE
 
uint16_t overlayID = 0
 
uint8_t caster = 0
 
bool isGMBuff = false
 

Member Function Documentation

◆ Active()

bool SpellBuff::Active ( ) const
inline
Original binary offset:
0x42EB31 Active is state where spell buff is in effect

◆ Apply()

bool SpellBuff::Apply ( Time  time,
CharacterSkillMastery  uSkillMastery,
int  uPower,
int  uOverlayID,
uint8_t  caster 
)
Original binary offset:
0x4584E0 TODO(pskelton): check for inconsistent use of caster caster = 0 for external source (potion / npc), 1 based for party character index

◆ Expired()

bool SpellBuff::Expired ( ) const
inline

Expired is state where spell buff is not in effect after previously being active

◆ GetExpireTime()

Time & SpellBuff::GetExpireTime ( )
inline

◆ Inactive()

bool SpellBuff::Inactive ( ) const
inline

Inactive is state where spell buff is not in effect (includes state expired)

◆ IsBuffExpiredToTime()

bool SpellBuff::IsBuffExpiredToTime ( Time  time)
Original binary offset:
0x4585CA

◆ Reset()

void SpellBuff::Reset ( )
Original binary offset:
0x458585

Member Data Documentation

◆ caster

uint8_t SpellBuff::caster = 0

◆ expireTime

Time SpellBuff::expireTime

◆ isGMBuff

bool SpellBuff::isGMBuff = false

◆ overlayID

uint16_t SpellBuff::overlayID = 0

◆ power

uint16_t SpellBuff::power = 0

◆ skillMastery


The documentation for this struct was generated from the following files: