![]() |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
Class representing a world state. More...
#include <world_objects.h>
Inheritance diagram for BlamWorldState:
Collaboration diagram for BlamWorldState:Public Member Functions | |
| BlamWorldState () | |
| Initializes a new world state. More... | |
| ~BlamWorldState () | |
| Destroys the world state. More... | |
| void | AddObject (BlamWorldObject *object) |
| bool | RemoveObject (uint64_t object_id, bool delete_data=true) |
| int | GetObjectCount () |
| bool | HasObject (uint64_t object_id) |
| BlamWorldObject * | GetObjectAtIndex (int index) |
| BlamWorldObject * | GetObjectById (uint64_t object_id) |
| BlamWorldObject * | GetObjectByName (std::string name, bool recursive_search=false) |
| bool | Drop (BlamTagData *tag_data, BlamVector3 position) |
| Drops a tag into the world at the specified coordinates. More... | |
| void | OnTickEvent (TickEvent *event) |
| void | RenderObjects (float delta) |
| void | SetActiveCamera (BlamWorldObject_Tag *camera) |
| BlamWorldObject_Tag * | GetActiveCamera () |
| BlamWorldObject_Tag * | CreateTagObject (BlamTagData *tag_data, bool add_to_world=true) |
Public Attributes | |
| Ogre::SceneNode * | root_node = nullptr |
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.
Here is the call graph for this function:| BlamWorldState::~BlamWorldState | ( | ) |
Destroys the world state.
Here is the call graph for this function:| void BlamWorldState::AddObject | ( | BlamWorldObject * | object | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| BlamWorldObject_Tag * BlamWorldState::CreateTagObject | ( | BlamTagData * | tag_data, |
| bool | add_to_world = true |
||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:| BlamWorldObject_Tag * BlamWorldState::GetActiveCamera | ( | ) |
Here is the caller graph for this function:| BlamWorldObject * BlamWorldState::GetObjectAtIndex | ( | int | index | ) |
Here is the caller graph for this function:| BlamWorldObject * BlamWorldState::GetObjectById | ( | uint64_t | object_id | ) |
| BlamWorldObject * BlamWorldState::GetObjectByName | ( | std::string | name, |
| bool | recursive_search = false |
||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:| int BlamWorldState::GetObjectCount | ( | ) |
Here is the caller graph for this function:| void BlamWorldState::OnTickEvent | ( | TickEvent * | event | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void BlamWorldState::RenderObjects | ( | float | delta | ) |
Here is the caller graph for this function:| void BlamWorldState::SetActiveCamera | ( | BlamWorldObject_Tag * | camera | ) |
Here is the caller graph for this function:| Ogre::SceneNode* BlamWorldState::root_node = nullptr |