![]() |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Class representing a world state. More...
#include <world_objects.h>
Public Member Functions | |
BlamWorldState () | |
Initializes a new world state. More... | |
~BlamWorldState () | |
Destroys the world state. More... | |
void | AddObject (BlamWorldObject *object) |
void | RemoveObject (uint64_t object_id) |
int | GetObjectCount () |
bool | HasObject (uint64_t object_id) |
BlamWorldObject * | GetObjectAtIndex (int index) |
BlamWorldObject * | GetObjectById (uint64_t object_id) |
bool | Drop (BlamTagData *tag_data, BlamVector3 position) |
Drops a tag into the world at the specified coordinates. More... | |
void | OnTickEvent (TickEvent *event) |
void | RenderObjects () |
Class representing a world state.
The world state stores all data related to the current state of the world in-engine. Primarily, this will include a list of all world objects currently placed down.
BlamWorldState::BlamWorldState | ( | ) |
Initializes a new world state.
BlamWorldState::~BlamWorldState | ( | ) |
Destroys the world state.
void BlamWorldState::AddObject | ( | BlamWorldObject * | object | ) |
bool BlamWorldState::Drop | ( | BlamTagData * | tag_data, |
BlamVector3 | position | ||
) |
Drops a tag into the world at the specified coordinates.
This method will create a new world object from the specified tag.
tag_data | - The tag data to use to create the new world object. |
position | - The position to place the new object at. |
true
if the tag was successfully dropped into the world, otherwise returns false
. BlamWorldObject * BlamWorldState::GetObjectAtIndex | ( | int | index | ) |
BlamWorldObject * BlamWorldState::GetObjectById | ( | uint64_t | object_id | ) |
int BlamWorldState::GetObjectCount | ( | ) |
bool BlamWorldState::HasObject | ( | uint64_t | object_id | ) |
void BlamWorldState::OnTickEvent | ( | TickEvent * | event | ) |
void BlamWorldState::RemoveObject | ( | uint64_t | object_id | ) |
void BlamWorldState::RenderObjects | ( | ) |