Tramway SDK
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
tram::WorldCell Class Reference

#include <worldcell.h>

Public Member Functions

 WorldCell (name_t name)
 
bool IsLoaded ()
 
bool IsInterior ()
 
bool HasInteriorLighting ()
 
bool IsDebugDraw ()
 
name_t GetName ()
 
void SetInterior (bool interior)
 
void SetInteriorLights (bool interior_lights)
 
void SetDebugDraw (bool debug_draw)
 
void Load ()
 
void Unload ()
 
void LoadFromDisk ()
 
void AddEntity (Entity *entity)
 
void RemoveEntity (Entity *entity)
 
size_t GetEntityCount ()
 
void AddTransitionInto (Transition *transition)
 
void AddTransitionFrom (Transition *transition)
 
WorldCellFindTransition (vec3 point)
 
const std::vector< Entity * > & GetEntities ()
 
bool IsInside (vec3 point)
 

Static Public Member Functions

static WorldCellFind (vec3 point)
 
static WorldCellFind (name_t name)
 
static WorldCellMake (name_t name)
 

Protected Attributes

name_t name
 
bool interior = false
 
bool interior_lighting = false
 
bool loaded = false
 
bool debug_draw = false
 
std::vector< Entity * > entities
 
std::vector< Transition * > transitions_into
 
std::vector< Transition * > transitions_from
 

Friends

class Loader
 

Constructor & Destructor Documentation

◆ WorldCell()

tram::WorldCell::WorldCell ( name_t  name)
inline

Member Function Documentation

◆ AddEntity()

void tram::WorldCell::AddEntity ( Entity entity)

◆ AddTransitionFrom()

void tram::WorldCell::AddTransitionFrom ( Transition transition)
inline

◆ AddTransitionInto()

void tram::WorldCell::AddTransitionInto ( Transition transition)
inline

◆ Find() [1/2]

WorldCell * tram::WorldCell::Find ( name_t  name)
static

◆ Find() [2/2]

WorldCell * tram::WorldCell::Find ( vec3  point)
static

◆ FindTransition()

WorldCell * tram::WorldCell::FindTransition ( vec3  point)

◆ GetEntities()

const std::vector< Entity * > & tram::WorldCell::GetEntities ( )
inline

◆ GetEntityCount()

size_t tram::WorldCell::GetEntityCount ( )
inline

◆ GetName()

name_t tram::WorldCell::GetName ( )
inline

◆ HasInteriorLighting()

bool tram::WorldCell::HasInteriorLighting ( )
inline

◆ IsDebugDraw()

bool tram::WorldCell::IsDebugDraw ( )
inline

◆ IsInside()

bool tram::WorldCell::IsInside ( vec3  point)

◆ IsInterior()

bool tram::WorldCell::IsInterior ( )
inline

◆ IsLoaded()

bool tram::WorldCell::IsLoaded ( )
inline

◆ Load()

void tram::WorldCell::Load ( )

◆ LoadFromDisk()

void tram::WorldCell::LoadFromDisk ( )

◆ Make()

WorldCell * tram::WorldCell::Make ( name_t  name)
static

◆ RemoveEntity()

void tram::WorldCell::RemoveEntity ( Entity entity)

◆ SetDebugDraw()

void tram::WorldCell::SetDebugDraw ( bool  debug_draw)
inline

◆ SetInterior()

void tram::WorldCell::SetInterior ( bool  interior)
inline

◆ SetInteriorLights()

void tram::WorldCell::SetInteriorLights ( bool  interior_lights)
inline

◆ Unload()

void tram::WorldCell::Unload ( )

Friends And Related Function Documentation

◆ Loader

friend class Loader
friend

Member Data Documentation

◆ debug_draw

bool tram::WorldCell::debug_draw = false
protected

◆ entities

std::vector<Entity*> tram::WorldCell::entities
protected

◆ interior

bool tram::WorldCell::interior = false
protected

◆ interior_lighting

bool tram::WorldCell::interior_lighting = false
protected

◆ loaded

bool tram::WorldCell::loaded = false
protected

◆ name

name_t tram::WorldCell::name
protected

◆ transitions_from

std::vector<Transition*> tram::WorldCell::transitions_from
protected

◆ transitions_into

std::vector<Transition*> tram::WorldCell::transitions_into
protected

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