![]() |
Blamite Game Engine - blam!
00398.09.22.23.2015.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... | |
virtual | ~BlamWorldObject () |
virtual void | Render () |
Renders the object to the screen. More... | |
Public Attributes | |
std::string | name = "unnamed" |
The unique name of this object. 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... | |
uint64_t | id = 0 |
A unique identifier for this object. Used to identify objects during runtime. More... | |
BlamWorldState * | world = nullptr |
The world state this object belongs to. More... | |
BlamVector3 | position = { 0, 0, 0 } |
The position of this object in world space. More... | |
BlamVector3 | rotation = { 0, 0, 0 } |
The rotation of this object in world space. More... | |
BlamVector3 | scale = { 1, 1, 1 } |
The scale/size of the object. More... | |
BlamWorldObjectType | type = BlamWorldObjectType::Unspecified |
The type of this world object. More... | |
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. |
|
inlinevirtual |
|
virtual |
Renders the object to the screen.
Reimplemented in BlamWorldObject_Primitive, and BlamWorldObject_Tag.
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.
std::string BlamWorldObject::name = "unnamed" |
The unique name of this object.
BlamVector3 BlamWorldObject::position = { 0, 0, 0 } |
The position of this object in world space.
BlamVector3 BlamWorldObject::rotation = { 0, 0, 0 } |
The rotation of this object in world space.
BlamVector3 BlamWorldObject::scale = { 1, 1, 1 } |
The scale/size of the object.
BlamWorldObjectType BlamWorldObject::type = BlamWorldObjectType::Unspecified |
The type of this world object.
BlamWorldState* BlamWorldObject::world = nullptr |
The world state this object belongs to.