jade-engine  0.0
JadeEngine::FTC Class Reference
Inheritance diagram for JadeEngine::FTC:
JadeEngine::IGameObject

Public Member Functions

 FTC (const FTCParams &params)
 
void Show (const bool shown) override
 
void SetIntValue (const uint32_t index, const int32_t value)
 
void SetStringValue (const uint32_t index, const std::string &value)
 
void SetFloatValue (const uint32_t index, const float value)
 
void SetValueColor (const uint32_t index, const SDL_Color &color)
 
- Public Member Functions inherited from JadeEngine::IGameObject
 IGameObject ()
 
virtual void Update ()
 
virtual void Clean ()
 
virtual LoadState Load (SDL_Renderer *renderer)
 
virtual void Render (SDL_Renderer *renderer)
 
LoadState GetLoadState () const
 
void SetLoadState (const LoadState newState)
 
bool IsShown () const
 
int32_t GetZ () const
 
void Destroy ()
 
bool DestructionWanted () const
 

Additional Inherited Members

- Public Attributes inherited from JadeEngine::IGameObject
const std::shared_ptr< Transformtransform
 
- Protected Attributes inherited from JadeEngine::IGameObject
LoadState _loadState
 
bool _shown
 
int32_t _z
 

Member Function Documentation

◆ Show()

void JadeEngine::FTC::Show ( const bool  show)
overridevirtual

Show or hide game object.

Warning
This does not affect any owned child game objects as this interface has no knowledge of them. It only handles tracking the visibility state. It is recommended to override this function for game object that own other game objects. Inside the overridden function one should call this - base - function and handle hiding/showing of children game objects there.
void SomeGameObject::Show(const bool shown) //override
{
// Show or hide any child objects or perform any other necessary operations
_childObject->Show(IsShown());
}
See also
IGameObject::IsShown

Reimplemented from JadeEngine::IGameObject.


The documentation for this class was generated from the following files:
JadeEngine::IGameObject::Show
virtual void Show(const bool show)
Definition: IGameObject.h:170
JadeEngine::IGameObject::IsShown
bool IsShown() const
Definition: IGameObject.h:153