 |
Blamite Game Engine - blam!
00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
5 #include <Strings/components/classes/world/vector.h>
37 std::string
name =
"unnamed";
43 BlamVector3
scale = { 1, 1, 1 };
121 std::vector<BlamWorldObject*>
objects = std::vector<BlamWorldObject*>();
BLAM BlamWorldState * GetWorldState()
Definition: world.cpp:23
std::string name
The unique name of this object.
Definition: world.h:37
BlamVector3 position
The position of this object in world space.
Definition: world.h:41
BlamWorldObjectType
Definition: world.h:15
Blam3DPrimitiveType primitive_type
The type of primitive this object represents.
Definition: world.h:95
bool Drop(BlamTagData *tag_data, BlamVector3 position)
Drops a tag into the world at the specified coordinates.
Definition: BlamWorldState.cpp:24
#define BLAM
Definition: world.h:10
BLAM void InitializeWorldState()
Definition: world.cpp:5
BlamVector3 rotation
The rotation of this object in world space.
Definition: world.h:42
std::vector< BlamWorldObject * > objects
Definition: world.h:121
BlamTagData * tag_data
Pointer to the tag data associated with this object.
Definition: world.h:70
Class representing a tag-based world object.
Definition: world.h:67
Offset font vertically by altering the io Font DisplayOffset value
Definition: README.txt:67
BLAM void DestroyWorldState()
Definition: world.cpp:14
void Render()
Renders the object to the screen.
Definition: BlamWorldObject_Tag.cpp:8
virtual void Render()
Renders the object to the screen.
Definition: BlamWorldObject.cpp:9
BlamVector3 scale
The scale/size of the object.
Definition: world.h:43
BlamWorldObjectType type
The type of this world object.
Definition: world.h:45
BLAM BlamDirection GetOppositeDirection(BlamDirection direction)
Gets the direction opposite to a given direction.
Definition: world.cpp:33
Class representing a primitive-based world object.
Definition: world.h:92
Class representing a world object.
Definition: world.h:34
BLAM float ConvertFloatToWorldUnits(float value)
Converts a given float to the equivalent in world units.
Definition: world.cpp:28
BlamWorldObject(BlamWorldState *_world, BlamWorldObjectType _type)
Creates a new world object.
Definition: BlamWorldObject.cpp:3
float radius_1
A secondary radius of the primitive. Only used in cylinders.
Definition: world.h:98
BlamWorldObject_Tag(BlamTagData *_tag_data, BlamWorldState *_world)
Creates a new tag-based world object.
Definition: BlamWorldObject_Tag.cpp:3
~BlamWorldState()
Destroys the world state.
Definition: BlamWorldState.cpp:10
float radius_0
The radius of the primitive. Only used in cylinders.
Definition: world.h:97
int resolution
The level of detail to use for the primitive. Only used in cylinders.
Definition: world.h:99
Class used to contain and access tag data.
Definition: tags.h:62
BlamWorldState * world
The world state this object belongs to.
Definition: world.h:40
void Render()
Renders the object to the screen.
Definition: BlamWorldObject_Primitive.cpp:10
Class representing a world state.
Definition: world.h:118
std::string description
An optional description of this object.
Definition: world.h:38
BlamWorldObject_Primitive(Blam3DPrimitiveType _primitive_type, BlamWorldState *_world)
Creates a new primitive world object.
Definition: BlamWorldObject_Primitive.cpp:5
Blam3DPrimitiveType
Definition: world.h:22
BlamWorldState()
Initializes a new world state.
Definition: BlamWorldState.cpp:5