![]() |
Blamite Game Engine - blam!
00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
|
Class representing a world object. More...
#include <world_objects.h>
Public Member Functions | |
BlamWorldObject (BlamWorldState *_world, BlamWorldObjectType _type) | |
Creates a new world object. More... | |
BlamWorldObject (BlamWorldObject *_parent, BlamWorldObjectType _type) | |
virtual | ~BlamWorldObject () |
virtual void | Render () |
Renders the object to the screen. More... | |
virtual void | ShowImGuiEditControls () |
uint64_t | GetID () |
Ogre::SceneNode * | GetParentSceneNode () |
BlamVector3 | GetRotation () |
void | SetRotation (BlamVector3 _rotation, bool local_axes=false) |
void | SetRotation (float x, float y, float z, bool local_axes=false) |
void | SetRotation (BlamAxis axis, float amount, bool local_axes=false) |
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 | GetHidden () |
void | SetHidden (bool hidden) |
std::string | GetName () |
void | SetName (std::string name) |
virtual void | OnMouseHoverEnter () |
virtual void | OnMouseHoverExit () |
virtual void | OnMouseMove (MouseMoveEvent *event) |
virtual void | OnMouseClick (MouseClickEvent *event) |
virtual void | OnMouseUnclick (MouseUnclickEvent *event) |
Public Attributes | |
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... | |
BlamWorldState * | world = nullptr |
The world state this object belongs to. More... | |
BlamWorldObject * | parent = nullptr |
BlamWorldObjectType | type = BlamWorldObjectType::Unspecified |
The type of this world object. More... | |
Ogre::SceneNode * | scene_node = nullptr |
Class representing a world object.
The world object will have several properties that can be modified on a per-object basis, such as a custom name, position, and rotation.
BlamWorldObject::BlamWorldObject | ( | BlamWorldState * | _world, |
BlamWorldObjectType | _type | ||
) |
Creates a new world object.
_world | - The world state this object should belong to. |
_type | - The type of world object being created. |
BlamWorldObject::BlamWorldObject | ( | BlamWorldObject * | _parent, |
BlamWorldObjectType | _type | ||
) |
|
virtual |
bool BlamWorldObject::GetHidden | ( | ) |
uint64_t BlamWorldObject::GetID | ( | ) |
std::string BlamWorldObject::GetName | ( | ) |
Ogre::SceneNode * BlamWorldObject::GetParentSceneNode | ( | ) |
BlamVector3 BlamWorldObject::GetPosition | ( | ) |
BlamVector3 BlamWorldObject::GetRotation | ( | ) |
BlamVector3 BlamWorldObject::GetScale | ( | ) |
BlamVector3 BlamWorldObject::GetScaleModifier | ( | ) |
|
virtual |
Reimplemented in BlamGizmoCuboid, and BlamGizmoTriangle.
|
virtual |
Reimplemented in BlamGizmoCuboid, and BlamGizmoTriangle.
|
virtual |
Reimplemented in BlamGizmoCuboid, and BlamGizmoTriangle.
|
virtual |
|
virtual |
|
virtual |
Renders the object to the screen.
Reimplemented in BlamWorldObject_Gizmo3DCursor, BlamWorldObject_GizmoTransform, BlamWorldObject_GizmoGrid, BlamWorldObject_PrimitiveLine, BlamWorldObject_PrimitiveCylinder, BlamWorldObject_PrimitiveSphere, BlamWorldObject_Primitive, BlamWorldObject_Group, BlamGizmoCuboid, BlamGizmoTriangle, BlamWorldObject_Gizmo, and BlamWorldObject_Tag.
void BlamWorldObject::SetHidden | ( | bool | hidden | ) |
void BlamWorldObject::SetName | ( | std::string | name | ) |
void BlamWorldObject::SetPosition | ( | BlamVector3 | position | ) |
void BlamWorldObject::SetPosition | ( | float | x, |
float | y, | ||
float | z | ||
) |
void BlamWorldObject::SetRotation | ( | BlamAxis | axis, |
float | amount, | ||
bool | local_axes = false |
||
) |
void BlamWorldObject::SetRotation | ( | BlamVector3 | _rotation, |
bool | local_axes = false |
||
) |
void BlamWorldObject::SetRotation | ( | float | x, |
float | y, | ||
float | z, | ||
bool | local_axes = false |
||
) |
void BlamWorldObject::SetScale | ( | BlamVector3 | scale | ) |
void BlamWorldObject::SetScale | ( | float | x, |
float | y, | ||
float | z | ||
) |
void BlamWorldObject::SetScaleModifier | ( | BlamVector3 | scale | ) |
void BlamWorldObject::SetScaleModifier | ( | float | x, |
float | y, | ||
float | z | ||
) |
|
virtual |
Reimplemented in BlamWorldObject_Gizmo3DCursor, BlamWorldObject_GizmoTransform, BlamWorldObject_GizmoGrid, BlamWorldObject_PrimitiveLine, BlamWorldObject_PrimitiveCylinder, BlamWorldObject_PrimitiveSphere, and BlamWorldObject_Primitive.
std::string BlamWorldObject::description = "" |
An optional description of this object.
int BlamWorldObject::editor_folder_id = 0 |
The editor folder that this object exists within. Only used within the editing kit.
uint64_t BlamWorldObject::id = 0 |
A unique identifier for this object. Used to identify objects during runtime.
BlamWorldObject* BlamWorldObject::parent = nullptr |
Ogre::SceneNode* BlamWorldObject::scene_node = nullptr |
BlamWorldObjectType BlamWorldObject::type = BlamWorldObjectType::Unspecified |
The type of this world object.
BlamWorldState* BlamWorldObject::world = nullptr |
The world state this object belongs to.