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

Class representing a world object. More...

#include <world.h>

+ Inheritance diagram for BlamWorldObject:

Public Member Functions

 BlamWorldObject (BlamWorldState *_world, BlamWorldObjectType _type)
 Creates a new world object. More...
 
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...
 
BlamWorldStateworld = 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BlamWorldObject()

BlamWorldObject::BlamWorldObject ( BlamWorldState _world,
BlamWorldObjectType  _type 
)

Creates a new world object.

Parameters
_world- The world state this object should belong to.
_type- The type of world object being created.

Member Function Documentation

◆ Render()

void BlamWorldObject::Render ( )
virtual

Renders the object to the screen.

Reimplemented in BlamWorldObject_Primitive, and BlamWorldObject_Tag.

Member Data Documentation

◆ description

std::string BlamWorldObject::description = ""

An optional description of this object.

◆ name

std::string BlamWorldObject::name = "unnamed"

The unique name of this object.

◆ position

BlamVector3 BlamWorldObject::position = { 0, 0, 0 }

The position of this object in world space.

◆ rotation

BlamVector3 BlamWorldObject::rotation = { 0, 0, 0 }

The rotation of this object in world space.

◆ scale

BlamVector3 BlamWorldObject::scale = { 1, 1, 1 }

The scale/size of the object.

◆ type

The type of this world object.

◆ world

BlamWorldState* BlamWorldObject::world = nullptr

The world state this object belongs to.


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