Classes | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes

Level Class Reference

Collaboration diagram for Level:
Collaboration graph
[legend]

List of all members.

Classes

struct  levelMemoryConfiguration

Public Member Functions

 Level (_DiskFile *_diskFile, ViewPort &_viewPort, VideoMemory &videoMemory, Mailboxes *parentMailboxes)
 ~Level ()
ActorConstructTemplateObject (int32 templateObjectIndex, int32 idxCreator, Vector3 position=Vector3::zero, Vector3 velocity=Vector3::zero)
void Validate () const
const _LevelOnDiskGetLevelData () const
int GetMaxObjectIndex () const
Cameracamera () const
const _LevelObj & GetLevelOAD () const
ViewPortGetViewPort ()
int GetActiveRoomIndex (int roomIndex) const
AssetManagerGetAssetManager ()
const ActiveRoomsGetActiveRooms () const
const LevelRoomsGetLevelRooms () const
LevelRoomsGetMutableLevelRooms ()
const CommonBlockGetCommonBlock () const
MemoryGetMemory ()
PhysicalObjectmainCharacter () const
void setMainCharacter (PhysicalObject *newMainCharacter)
void updateMainCharacter ()
void update (Scalar deltaTime)
void RenderScene ()
bool done () const
void reset ()
void AddObject (BaseObject *object, const Vector3 &posStartAt)
void SetPendingRemove (const BaseObject *object)
ActorGetActorNoTemplate (int idxActor) const
ActorgetActor (int idxActor) const
BaseObjectGetObject (int idxObject) const
int GetObjectIndex (const BaseObject *object)
BaseObjectListGetObjectList ()
void WriteSystemMailbox (int boxnum, Scalar value)
Scalar ReadSystemMailbox (int boxnum) const
MailboxesGetMailboxes ()
const ClockLevelClock () const
const SObjectStartupDataFindTemplateObjectData (int32 objectIndex) const
Scalar EvalScript (const void *, int objectIndex)

Public Attributes

SoundDevice_theSoundDevice
SoundBuffer_sfx [128]

Private Member Functions

void initLevelOad ()
void initModels ()
void ConstructStartupData (SObjectStartupData &, _ObjectOnDisk *, int index)
void constructObject (SObjectStartupData &startupData, int index)
void updateSound ()
void detectCollision ()
void updateRoomContents ()
void removePendingObjects ()
void LoadLevelData ()

Private Attributes

ViewPort_viewPort
void * _levelOnDiskMemory
_LevelOnDisk_levelData
const CommonBlock_commonBlock
_LevelObj * _levelOad
LevelRooms_theLevelRooms
ActiveRooms_theActiveRooms
BaseObjectList _actors
AssetManager_theAssetManager
_DiskFile_levelFile
QInputDigital_hardwareInput1
QInputDigital_hardwareInput2
QInputDigital_hardwareInput3
QInputDigital_hardwareInput4
bool _done
Director_director
Camera_camera
PhysicalObject_mainCharacter
PhysicalObject_idealMainCharacter
Clock levelClock
int32 _toBeRemovedObjects [100]
int _numToBeRemovedObjects
SObjectStartupData ** _templateObjects
int _numTemplateObjects
long _camRollMailBox
long _camShotMailBox
PointerContainer< Memory_memory
MailboxesWithStorage _scratchMailboxes
LevelMailboxes _mailboxes
WorldFoundryMailboxesManager _mailboxesManager
ScriptInterpreter_interpreter
LevelRoomCallbacks_roomCallbacks
AssetCallbackRoom_assetCallbackRoom

Detailed Description

Definition at line 119 of file level.hp.


Constructor & Destructor Documentation

Level::Level ( _DiskFile _diskFile,
ViewPort _viewPort,
VideoMemory videoMemory,
Mailboxes parentMailboxes 
)
Level::~Level (  ) 

Definition at line 671 of file level.cc.

References assert, DBSTREAM1, DBSTREAM4, HALLmalloc, MEMORY_DELETE, NULL, theLevel, ValidatePtr, and ValidPtr().


Member Function Documentation

void Level::AddObject ( BaseObject object,
const Vector3 posStartAt 
)
Camera * Level::camera (  )  const [inline]
void Level::constructObject ( SObjectStartupData startupData,
int  index 
) [private]
void Level::ConstructStartupData ( SObjectStartupData startupData,
_ObjectOnDisk objdata,
int  index 
) [private]
Actor * Level::ConstructTemplateObject ( int32  templateObjectIndex,
int32  idxCreator,
Vector3  position = Vector3::zero,
Vector3  velocity = Vector3::zero 
)
void Level::detectCollision (  )  [private]
bool Level::done (  )  const [inline]

Definition at line 219 of file level.hpi.

References _done.

Referenced by WFGame::RunLevel().

Scalar Level::EvalScript ( const void *  script,
int  objectIndex 
)
const SObjectStartupData * Level::FindTemplateObjectData ( int32  objectIndex  )  const [inline]
int Level::GetActiveRoomIndex ( int  roomIndex  )  const [inline]
const ActiveRooms & Level::GetActiveRooms (  )  const [inline]
Actor * Level::getActor ( int  idxActor  )  const [inline]
Actor * Level::GetActorNoTemplate ( int  idxActor  )  const [inline]

Definition at line 143 of file level.hpi.

References _actors, _templateObjects, assert, AssertMsg, Array< T >::Size(), and ValidPtr().

AssetManager & Level::GetAssetManager (  )  [inline]

Definition at line 83 of file level.hpi.

References _theAssetManager, and ValidatePtr.

Referenced by Room::BindAssets(), Actor::BindAssets(), and ConstructTemplateObject().

const CommonBlock & Level::GetCommonBlock (  )  const [inline]

Definition at line 260 of file level.hpi.

References _commonBlock.

const _LevelOnDisk & Level::GetLevelData (  )  const [inline]

Definition at line 56 of file level.hpi.

References _levelData, assert, and ValidPtr().

Referenced by ConstructStartupData().

const _LevelObj & Level::GetLevelOAD (  )  const [inline]

Definition at line 111 of file level.hpi.

References _levelOad.

const LevelRooms & Level::GetLevelRooms (  )  const [inline]

Definition at line 92 of file level.hpi.

References _theLevelRooms, and ValidatePtr.

Referenced by Actor::ReadSystemMailbox(), reset(), and SafelyConstructTemplateObject().

Mailboxes & Level::GetMailboxes (  )  [inline]
int Level::GetMaxObjectIndex (  )  const [inline]

Definition at line 66 of file level.hpi.

References _actors, and Array< T >::Size().

Referenced by BungeeCameraHandler::predictPosition().

Memory & Level::GetMemory (  )  [inline]

Definition at line 276 of file level.hpi.

References _memory.

Referenced by Actor::Actor(), Actor::GetMemory(), and Actor::~Actor().

LevelRooms & Level::GetMutableLevelRooms (  )  [inline]

Definition at line 101 of file level.hpi.

References _theLevelRooms, and Validate().

Referenced by updateRoomContents().

BaseObject * Level::GetObject ( int  idxObject  )  const
int Level::GetObjectIndex ( const BaseObject object  ) 
BaseObjectList & Level::GetObjectList (  )  [inline]
ViewPort & Level::GetViewPort (  )  [inline]

Definition at line 203 of file level.hpi.

References _viewPort.

void Level::initLevelOad (  )  [private]
void Level::initModels (  )  [private]

Definition at line 186 of file level.cc.

References _levelData, assert, and ValidPtr().

const Clock & Level::LevelClock (  )  const [inline]
void Level::LoadLevelData (  )  [private]
PhysicalObject * Level::mainCharacter (  )  const [inline]
Scalar Level::ReadSystemMailbox ( int  boxnum  )  const
void Level::removePendingObjects (  )  [private]
void Level::RenderScene (  ) 
void Level::reset (  ) 
void Level::setMainCharacter ( PhysicalObject newMainCharacter  )  [inline]

Definition at line 188 of file level.hpi.

References _idealMainCharacter, assert, and ValidPtr().

Referenced by constructObject().

void Level::SetPendingRemove ( const BaseObject object  ) 
void Level::update ( Scalar  deltaTime  ) 
void Level::updateMainCharacter (  )  [inline]

Definition at line 195 of file level.hpi.

References _idealMainCharacter, _mainCharacter, assert, and ValidPtr().

Referenced by constructObject(), and update().

void Level::updateRoomContents (  )  [private]
void Level::updateSound (  )  [private]

Definition at line 956 of file level.cc.

Referenced by update().

void Level::Validate (  )  const [inline]
void Level::WriteSystemMailbox ( int  boxnum,
Scalar  value 
)

Member Data Documentation

Definition at line 279 of file level.hp.

Camera* Level::_camera [private]

Definition at line 230 of file level.hp.

Referenced by camera(), constructObject(), RenderScene(), reset(), and update().

long Level::_camRollMailBox [private]

Definition at line 255 of file level.hp.

Referenced by ReadSystemMailbox(), and WriteSystemMailbox().

long Level::_camShotMailBox [private]

Definition at line 256 of file level.hp.

Referenced by ReadSystemMailbox(), and WriteSystemMailbox().

const CommonBlock* Level::_commonBlock [private]

Definition at line 210 of file level.hp.

Referenced by ConstructStartupData(), and GetCommonBlock().

Definition at line 229 of file level.hp.

Referenced by constructObject(), and update().

bool Level::_done [private]

Definition at line 226 of file level.hp.

Referenced by done(), and WriteSystemMailbox().

Definition at line 217 of file level.hp.

Referenced by ReadSystemMailbox(), and update().

Definition at line 218 of file level.hp.

Referenced by ReadSystemMailbox(), and update().

Definition at line 219 of file level.hp.

Referenced by ReadSystemMailbox(), and update().

Definition at line 220 of file level.hp.

Referenced by ReadSystemMailbox(), and update().

Definition at line 233 of file level.hp.

Referenced by setMainCharacter(), and updateMainCharacter().

Definition at line 264 of file level.hp.

Referenced by EvalScript().

Definition at line 216 of file level.hp.

Referenced by LoadLevelData().

_LevelObj* Level::_levelOad [private]

Definition at line 211 of file level.hp.

Referenced by constructObject(), GetLevelOAD(), and initLevelOad().

void* Level::_levelOnDiskMemory [private]

Definition at line 208 of file level.hp.

Referenced by LoadLevelData().

Definition at line 261 of file level.hp.

Referenced by ConstructStartupData(), and GetMailboxes().

Definition at line 262 of file level.hp.

Definition at line 231 of file level.hp.

Referenced by mainCharacter(), and updateMainCharacter().

Definition at line 258 of file level.hp.

Referenced by ConstructStartupData(), GetMemory(), removePendingObjects(), and reset().

Definition at line 253 of file level.hp.

Referenced by FindTemplateObjectData().

Definition at line 249 of file level.hp.

Referenced by removePendingObjects(), and reset().

Definition at line 278 of file level.hp.

Definition at line 260 of file level.hp.

Definition at line 186 of file level.hp.

Referenced by Actor::WriteSystemMailbox().

Definition at line 252 of file level.hp.

Referenced by constructObject(), FindTemplateObjectData(), and GetActorNoTemplate().

Definition at line 215 of file level.hp.

Referenced by GetAssetManager(), and LoadLevelData().

Definition at line 212 of file level.hp.

Referenced by AddObject(), GetLevelRooms(), GetMutableLevelRooms(), and removePendingObjects().

Definition at line 185 of file level.hp.

Definition at line 248 of file level.hp.

Referenced by removePendingObjects(), and SetPendingRemove().

Definition at line 206 of file level.hp.

Referenced by GetViewPort(), and RenderScene().

Definition at line 245 of file level.hp.

Referenced by LevelClock(), ReadSystemMailbox(), reset(), and update().


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