Elaztek Developer Hub
Blamite Game Engine - blam!  00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
BlamWorldObject_Group Class Reference

#include <world_objects.h>

+ Inheritance diagram for BlamWorldObject_Group:
+ Collaboration diagram for BlamWorldObject_Group:

Public Member Functions

void AddObject (BlamWorldObject *object)
 
void RemoveObject (uint64_t object_id)
 
int GetObjectCount ()
 
bool HasObject (uint64_t object_id)
 
BlamWorldObjectGetObjectAtIndex (int index)
 
BlamWorldObjectGetObjectById (uint64_t object_id)
 
BlamWorldObjectGetObjectByName (std::string name, bool recursive_search=false)
 
void Render (float delta) override
 Renders the object to the screen. More...
 
void Tick (int tick, int total_ticks) override
 
- Public Member Functions inherited from BlamWorldObject
 BlamWorldObject (BlamWorldState *_world, BlamWorldObjectType _type)
 Creates a new world object. More...
 
 BlamWorldObject (BlamWorldObject *_parent, BlamWorldObjectType _type)
 
virtual ~BlamWorldObject ()
 
virtual void ShowImGuiEditControls ()
 
uint64_t GetID ()
 
Ogre::SceneNode * GetParentSceneNode ()
 
BlamVector3 GetRotation ()
 
void SetRotation (BlamVector3 _rotation, bool local_axes=true)
 
void SetRotation (float x, float y, float z, bool local_axes=true)
 
void SetRotation (BlamAxis axis, float amount, bool local_axes=true)
 
BlamVector3 GetAbsolutePosition ()
 
BlamVector3 GetPosition ()
 
void SetPosition (BlamVector3 position)
 
void SetPosition (float x, float y, float z)
 
BlamVector3 GetScale ()
 
void SetScale (BlamVector3 scale)
 
void SetScale (float x, float y, float z)
 
BlamVector3 GetScaleModifier ()
 
void SetScaleModifier (BlamVector3 scale)
 
void SetScaleModifier (float x, float y, float z)
 
bool IsHidden ()
 
bool GetHidden ()
 
void SetHidden (bool hidden)
 
std::string GetName ()
 
void SetName (std::string name)
 
void Translate (BlamVector3 offset, BlamTransformSpace transform_space=BlamTransformSpace::Parent)
 
void Rotate (BlamVector3 axis, float rotation_amount, BlamTransformSpace transform_space=BlamTransformSpace::Parent)
 
BlamVector3 GetDirection ()
 
virtual void OnMouseHoverEnter ()
 
virtual void OnMouseHoverExit ()
 
virtual void OnMouseMove (MouseMoveEvent *event)
 
virtual void OnMouseClick (MouseClickEvent *event)
 
virtual void OnMouseUnclick (MouseUnclickEvent *event)
 
virtual uint32_t GetQueryMask ()
 
virtual BlamOrientedBoundingBox GetWorldOBB ()
 
void CreateSceneNode ()
 
void SetShaderParameter (std::string id, float value)
 
void SetShaderParameter (std::string id, BlamVector2 value)
 
void SetShaderParameter (std::string id, BlamVector3 value)
 
void SetShaderParameter (std::string id, BlamVector4 value)
 
float GetShaderParameterFloat (std::string id)
 
BlamVector2 GetShaderParameterVector2 (std::string id)
 
BlamVector3 GetShaderParameterVector3 (std::string id)
 
BlamVector4 GetShaderParameterVector4 (std::string id)
 

Additional Inherited Members

- Public Attributes inherited from BlamWorldObject
uint64_t id = 0
 A unique identifier for this object. Used to identify objects during runtime. More...
 
std::string description = ""
 An optional description of this object. More...
 
int editor_folder_id = 0
 The editor folder that this object exists within. Only used within the editing kit. More...
 
bool disable_culling = false
 
uint64_t state_flags = BGFX_STATE_DEFAULT | BGFX_STATE_CULL_CCW | BGFX_STATE_BLEND_ALPHA
 
BlamWorldStateworld = nullptr
 The world state this object belongs to. More...
 
BlamWorldObjectparent = nullptr
 
BlamWorldObjectType type = BlamWorldObjectType::Unspecified
 The type of this world object. More...
 
Ogre::SceneNode * scene_node = nullptr
 

Member Function Documentation

◆ AddObject()

void BlamWorldObject_Group::AddObject ( BlamWorldObject object)
+ Here is the call graph for this function:

◆ GetObjectAtIndex()

BlamWorldObject * BlamWorldObject_Group::GetObjectAtIndex ( int  index)

◆ GetObjectById()

BlamWorldObject * BlamWorldObject_Group::GetObjectById ( uint64_t  object_id)

◆ GetObjectByName()

BlamWorldObject * BlamWorldObject_Group::GetObjectByName ( std::string  name,
bool  recursive_search = false 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetObjectCount()

int BlamWorldObject_Group::GetObjectCount ( )

◆ HasObject()

bool BlamWorldObject_Group::HasObject ( uint64_t  object_id)
+ Here is the caller graph for this function:

◆ RemoveObject()

void BlamWorldObject_Group::RemoveObject ( uint64_t  object_id)
+ Here is the call graph for this function:

◆ Render()

void BlamWorldObject_Group::Render ( float  delta)
overridevirtual

Renders the object to the screen.

Reimplemented from BlamWorldObject.

+ Here is the call graph for this function:

◆ Tick()

void BlamWorldObject_Group::Tick ( int  tick,
int  total_ticks 
)
overridevirtual

Reimplemented from BlamWorldObject.


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