Level Class Reference
[Engine Module]

#include <level.h>

Inheritance diagram for Level:

Preloaded Root Object TreeNode< Root > Referenced Counted Serialized List< Root > ListNode< Root >

List of all members.

Public Member Functions

 Level (const char *id)
virtual ~Level ()
virtual void SetActive (bool active)
void Update ()
void Render ()
MapGetMap () const
PlayerNewPlayer (const string &name)
PlayerGetActivePlayer () const
PlayerGetPlayer (const string &id) const
void AddUnitToMap (Unit *unit)
void RemoveUnitFromMap (Unit *unit)

Protected Member Functions

virtual void ClearHeader ()
virtual void ClearBody ()
virtual bool LoadResources ()
virtual void UnloadResources ()
virtual bool ReadHeader (Serializer &serializer)
virtual bool ReadBody (Serializer &serializer)
virtual bool WriteHeader (Serializer &serializer)
virtual bool WriteBody (Serializer &serializer)

Protected Attributes

string name
 Full level name.
string author_name
string author_contact
Ref< Mapmap
string script_file
Ref< Rootplayers
 Root node of all players.
Ref< Playeractive_player
 Active player.

Private Member Functions

bool RegisterPlayer (Player *player)
bool DeregisterPlayer (Player *player)


Constructor & Destructor Documentation

Level::Level ( const char *  id  ) 

Checks whether remote server is present.

Level::~Level (  )  [virtual]

Cleares resources and loaded data.


Member Function Documentation

void Level::SetActive ( bool  active  )  [virtual]

Sets active state.

Parameters:
active Active state.

Reimplemented from Preloaded.

void Level::Update (  ) 

void Level::Render (  ) 

Map * Level::GetMap (  )  const [inline]

Player * Level::NewPlayer ( const string &  name  ) 

Player * Level::GetActivePlayer (  )  const [inline]

Player * Level::GetPlayer ( const string &  id  )  const [inline]

void Level::AddUnitToMap ( Unit unit  ) 

void Level::RemoveUnitFromMap ( Unit unit  ) 

void Level::ClearHeader (  )  [protected, virtual]

Reimplemented from Preloaded.

void Level::ClearBody (  )  [protected, virtual]

Reimplemented from Preloaded.

bool Level::LoadResources (  )  [protected, virtual]

Reimplemented from Preloaded.

void Level::UnloadResources (  )  [protected, virtual]

Reimplemented from Preloaded.

bool Level::ReadHeader ( Serializer serializer  )  [protected, virtual]

Reimplemented from Preloaded.

bool Level::ReadBody ( Serializer serializer  )  [protected, virtual]

Reimplemented from Preloaded.

bool Level::WriteHeader ( Serializer serializer  )  [protected, virtual]

Todo:
Implement

Reimplemented from Preloaded.

bool Level::WriteBody ( Serializer serializer  )  [protected, virtual]

Todo:
Implement

Reimplemented from Preloaded.

bool Level::RegisterPlayer ( Player player  )  [inline, private]

bool Level::DeregisterPlayer ( Player player  )  [inline, private]


Member Data Documentation

string Level::name [protected]

Full level name.

string Level::author_name [protected]

string Level::author_contact [protected]

Ref<Map> Level::map [protected]

string Level::script_file [protected]

Ref<Root> Level::players [protected]

Root node of all players.

Ref<Player> Level::active_player [protected]

Active player.


The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:32 2007 for Dark Oberon by  doxygen 1.5.3