![]() |
Blamite Game Engine - blam!
00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
|
Class representing a world state. More...
#include <world.h>
Public Member Functions | |
BlamWorldState () | |
Initializes a new world state. More... | |
~BlamWorldState () | |
Destroys the world state. More... | |
bool | Drop (BlamTagData *tag_data, BlamVector3 position) |
Drops a tag into the world at the specified coordinates. More... | |
Public Attributes | |
std::vector< BlamWorldObject * > | objects = std::vector<BlamWorldObject*>() |
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.
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
. std::vector<BlamWorldObject*> BlamWorldState::objects = std::vector<BlamWorldObject*>() |