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

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*>()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BlamWorldState()

BlamWorldState::BlamWorldState ( )

Initializes a new world state.

◆ ~BlamWorldState()

BlamWorldState::~BlamWorldState ( )

Destroys the world state.

Member Function Documentation

◆ Drop()

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.

Parameters
tag_data- The tag data to use to create the new world object.
position- The position to place the new object at.
Returns
true if the tag was successfully dropped into the world, otherwise returns false.

Member Data Documentation

◆ objects

std::vector<BlamWorldObject*> BlamWorldState::objects = std::vector<BlamWorldObject*>()

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