VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
vex::FogObject Class Reference

premade FogObject class. More...

#include <FogObject.hpp>

Inheritance diagram for vex::FogObject:
vex::GameObject

Public Member Functions

 FogObject (Engine &engine, const std::string &name)
Public Member Functions inherited from vex::GameObject
 GameObject (Engine &engine, const std::string &name)
 Default constructor for GameObject.
void Destroy ()
 Destroys the GameObject and removes it from the engine's registry.
virtual ~GameObject ()
 Destructor.
 GameObject (const GameObject &)=delete
GameObjectoperator= (const GameObject &)=delete
 GameObject (GameObject &&other) noexcept
virtual void BeginPlay ()
 virtual void function you override to implement custom behavior when the game starts.
virtual void Update (float deltaTime)
 virtual void function you override to implement custom behavior when the game updates (eg. every frame).
vex::Entity GetEntity () const
 Function that returns entity object, which is the entity associated with this GameObject. Its mostly needed for parenting and other engine internal usage.
EngineGetEngine ()
 Function that returns engine reference allowing your custom Object to use engine provided methods.
template<typename T>
T & GetComponent ()
 Function that returns reference to a requested component.
template<typename T>
void AddComponent (const T &comp)
 Function that adds a component to the GameObject.
template<typename T>
bool HasComponent () const
 Function that checks if the GameObject has a component.
bool isValid () const
void ParentTo (vex::Entity entity)
 Function that parent this Object to another GameObject. You need to pass another GameObject's entity.
void setObjectType (const std::string &type)
 Function that sets the type of the GameObject.
const std::string & getObjectType () const
 Function that returns the type of the GameObject.

Additional Inherited Members

Protected Attributes inherited from vex::GameObject
Enginem_engine
vex::Entity m_entity
bool m_isValid
std::string objectType

Detailed Description

premade FogObject class.

Definition at line 13 of file FogObject.hpp.

Constructor & Destructor Documentation

◆ FogObject()

vex::FogObject::FogObject ( Engine & engine,
const std::string & name )
inline

Definition at line 15 of file FogObject.hpp.


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