OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Private Attributes | List of all members
World Class Reference

The game world (model) More...

#include <World.h>

Collaboration diagram for World:
[legend]

Public Member Functions

 ~World ()
 Deconstructs an object of World. More...
 
void destroy ()
 Clears all data in world. More...
 
void addRoom (Room *room)
 
unsigned long sizeRoom ()
 
RoomgetRoom (unsigned long index)
 
void addSprite (Sprite *sprite)
 
unsigned long sizeSprite ()
 
SpritegetSprite (unsigned long index)
 
void addSpriteSequence (SpriteSequence *sprite)
 
unsigned long sizeSpriteSequence ()
 
SpriteSequencegetSpriteSequence (unsigned long index)
 
void addEntity (Entity *entity)
 
unsigned long sizeEntity ()
 
EntitygetEntity (unsigned long index)
 
void addSkeletalModel (SkeletalModel *model)
 
unsigned long sizeSkeletalModel ()
 
SkeletalModelgetSkeletalModel (unsigned long index)
 
void addStaticMesh (StaticMesh *model)
 
unsigned long sizeStaticMesh ()
 
StaticMeshgetStaticMesh (unsigned long index)
 
void addMesh (Mesh *mesh)
 
unsigned long sizeMesh ()
 
MeshgetMesh (unsigned long index)
 

Private Attributes

std::vector< std::unique_ptr< Room > > mRooms
 
std::vector< std::unique_ptr< Sprite > > mSprites
 
std::vector< std::unique_ptr< SpriteSequence > > mSpriteSequences
 
std::vector< std::unique_ptr< Entity > > mEntities
 
std::vector< std::unique_ptr< SkeletalModel > > mModels
 
std::vector< std::unique_ptr< StaticMesh > > mStaticMeshes
 
std::vector< std::unique_ptr< Mesh > > mMeshes
 

Detailed Description

The game world (model)

Definition at line 25 of file World.h.

Constructor & Destructor Documentation

World::~World ( )

Deconstructs an object of World.

Definition at line 11 of file World.cpp.

Member Function Documentation

void World::destroy ( )

Clears all data in world.

Definition at line 15 of file World.cpp.

void World::addRoom ( Room room)

Definition at line 25 of file World.cpp.

unsigned long World::sizeRoom ( )

Definition at line 29 of file World.cpp.

Room & World::getRoom ( unsigned long  index)

Definition at line 33 of file World.cpp.

void World::addSprite ( Sprite sprite)

Definition at line 38 of file World.cpp.

unsigned long World::sizeSprite ( )

Definition at line 42 of file World.cpp.

Sprite & World::getSprite ( unsigned long  index)

Definition at line 46 of file World.cpp.

void World::addSpriteSequence ( SpriteSequence sprite)

Definition at line 51 of file World.cpp.

unsigned long World::sizeSpriteSequence ( )

Definition at line 55 of file World.cpp.

SpriteSequence & World::getSpriteSequence ( unsigned long  index)

Definition at line 59 of file World.cpp.

void World::addEntity ( Entity entity)

Definition at line 64 of file World.cpp.

unsigned long World::sizeEntity ( )

Definition at line 68 of file World.cpp.

Entity & World::getEntity ( unsigned long  index)

Definition at line 72 of file World.cpp.

void World::addSkeletalModel ( SkeletalModel model)

Definition at line 77 of file World.cpp.

unsigned long World::sizeSkeletalModel ( )

Definition at line 81 of file World.cpp.

SkeletalModel & World::getSkeletalModel ( unsigned long  index)

Definition at line 85 of file World.cpp.

void World::addStaticMesh ( StaticMesh model)

Definition at line 90 of file World.cpp.

unsigned long World::sizeStaticMesh ( )

Definition at line 94 of file World.cpp.

StaticMesh & World::getStaticMesh ( unsigned long  index)

Definition at line 98 of file World.cpp.

void World::addMesh ( Mesh mesh)

Definition at line 103 of file World.cpp.

unsigned long World::sizeMesh ( )

Definition at line 107 of file World.cpp.

Mesh & World::getMesh ( unsigned long  index)

Definition at line 111 of file World.cpp.

Member Data Documentation

std::vector<std::unique_ptr<Room> > World::mRooms
private

Definition at line 67 of file World.h.

std::vector<std::unique_ptr<Sprite> > World::mSprites
private

Definition at line 68 of file World.h.

std::vector<std::unique_ptr<SpriteSequence> > World::mSpriteSequences
private

Definition at line 69 of file World.h.

std::vector<std::unique_ptr<Entity> > World::mEntities
private

Definition at line 70 of file World.h.

std::vector<std::unique_ptr<SkeletalModel> > World::mModels
private

Definition at line 71 of file World.h.

std::vector<std::unique_ptr<StaticMesh> > World::mStaticMeshes
private

Definition at line 72 of file World.h.

std::vector<std::unique_ptr<Mesh> > World::mMeshes
private

Definition at line 73 of file World.h.


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