TrinityCore
Loading...
Searching...
No Matches
GameObjectType::NewFlag Class Reference
+ Inheritance diagram for GameObjectType::NewFlag:

Public Member Functions

 NewFlag (GameObject &owner)
 
void SetState (FlagState newState, Player *player)
 
void Update (uint32 diff) override
 
bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const override
 
FlagState GetState () const
 
ObjectGuid const & GetCarrierGUID () const
 
time_t GetTakenFromBaseTime () const
 
- Public Member Functions inherited from GameObjectTypeBase
 GameObjectTypeBase (GameObject &owner)
 
virtual ~GameObjectTypeBase ()=default
 
virtual void OnStateChanged (GOState oldState, GOState newState)
 
virtual void OnRelocated ()
 
virtual void ActivateObject (GameObjectActions action, int32 param, WorldObject *spellCaster=nullptr, uint32 spellId=0, int32 effectIndex=-1)
 

Private Attributes

FlagState _state
 
time_t _respawnTime
 
ObjectGuid _carrierGUID
 
time_t _takenFromBaseTime
 

Additional Inherited Members

- Protected Attributes inherited from GameObjectTypeBase
GameObject & _owner
 

Detailed Description

Definition at line 520 of file GameObject.cpp.

Constructor & Destructor Documentation

◆ NewFlag()

GameObjectType::NewFlag::NewFlag ( GameObject &  owner)
inlineexplicit

Definition at line 523 of file GameObject.cpp.

Member Function Documentation

◆ GetCarrierGUID()

ObjectGuid const & GameObjectType::NewFlag::GetCarrierGUID ( ) const
inline

Definition at line 566 of file GameObject.cpp.

References _carrierGUID.

Referenced by GameObject::GetFlagCarrierGUID().

◆ GetState()

FlagState GameObjectType::NewFlag::GetState ( ) const
inline

Definition at line 565 of file GameObject.cpp.

References _state.

Referenced by GameObject::GetFlagState(), and GameObject::Use().

◆ GetTakenFromBaseTime()

time_t GameObjectType::NewFlag::GetTakenFromBaseTime ( ) const
inline

Definition at line 567 of file GameObject.cpp.

References _takenFromBaseTime.

Referenced by GameObject::GetFlagTakenFromBaseTime().

◆ IsNeverVisibleFor()

bool GameObjectType::NewFlag::IsNeverVisibleFor ( WorldObject const *  seer,
bool  allowServersideObjects 
) const
inlineoverridevirtual

Reimplemented from GameObjectTypeBase.

Definition at line 560 of file GameObject.cpp.

References _state, and InBase.

◆ SetState()

◆ Update()

void GameObjectType::NewFlag::Update ( uint32  diff)
inlineoverridevirtual

Reimplemented from GameObjectTypeBase.

Definition at line 554 of file GameObject.cpp.

References _respawnTime, _state, GameTime::GetGameTimeMS(), InBase, Respawning, and SetState().

Member Data Documentation

◆ _carrierGUID

ObjectGuid GameObjectType::NewFlag::_carrierGUID
private

Definition at line 572 of file GameObject.cpp.

Referenced by GetCarrierGUID(), and SetState().

◆ _respawnTime

time_t GameObjectType::NewFlag::_respawnTime
private

Definition at line 571 of file GameObject.cpp.

Referenced by SetState(), and Update().

◆ _state

FlagState GameObjectType::NewFlag::_state
private

Definition at line 570 of file GameObject.cpp.

Referenced by GetState(), IsNeverVisibleFor(), SetState(), and Update().

◆ _takenFromBaseTime

time_t GameObjectType::NewFlag::_takenFromBaseTime
private

Definition at line 573 of file GameObject.cpp.

Referenced by GetTakenFromBaseTime(), and SetState().


The documentation for this class was generated from the following file: