orxonox::Level Class Reference

#include <src/orxonox/objects/Level.h>

Inheritance diagram for orxonox::Level:

orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass

List of all members.

Public Member Functions

const std::stringgetDescription () const
 Level (BaseObject *creator)
void loadAmbientSound (const std::string &filename)
void playerEntered (PlayerInfo *player)
void playerLeft (PlayerInfo *player)
void registerVariables ()
void setDescription (const std::string &description)
virtual void XMLPort (Element &xmlelement, XMLPort::Mode mode)
 XML loading and saving.
virtual ~Level ()

Private Member Functions

void addObject (BaseObject *object)
const std::stringgetGametypeString () const
BaseObjectgetObject (unsigned int index) const
void networkcallback_applyXMLFile ()
void setGametypeString (const std::string &gametype)

Private Attributes

SoundBaseambientsound_
std::string description_
std::string gametype_
std::list< BaseObject * > objects_
XMLFilexmlfile_
std::string xmlfilename_


Constructor & Destructor Documentation

orxonox::Level::Level ( BaseObject creator  ) 

orxonox::Level::~Level (  )  [virtual]


Member Function Documentation

void orxonox::Level::addObject ( BaseObject object  )  [private]

References orxonox::BaseObject::getGametype(), and objects_.

Referenced by XMLPort().

const std::string& orxonox::Level::getDescription (  )  const [inline]

Referenced by XMLPort().

const std::string& orxonox::Level::getGametypeString (  )  const [inline, private]

Referenced by XMLPort().

BaseObject * orxonox::Level::getObject ( unsigned int  index  )  const [private]

References objects_.

Referenced by XMLPort().

void orxonox::Level::loadAmbientSound ( const std::string filename  ) 

void orxonox::Level::networkcallback_applyXMLFile (  )  [private]

void orxonox::Level::playerEntered ( PlayerInfo player  ) 

void orxonox::Level::playerLeft ( PlayerInfo player  ) 

void orxonox::Level::registerVariables (  ) 

void orxonox::Level::setDescription ( const std::string description  )  [inline]

Referenced by XMLPort().

void orxonox::Level::setGametypeString ( const std::string gametype  )  [private]

void orxonox::Level::XMLPort ( Element &  xmlelement,
XMLPort::Mode  mode 
) [virtual]

XML loading and saving.

Parameters:
xmlelement The XML-element
loading Loading (true) or saving (false)
Returns:
The XML-element

Reimplemented from orxonox::BaseObject.

References addObject(), getDescription(), getGametypeString(), getObject(), loadAmbientSound(), setDescription(), setGametypeString(), SUPER, XMLPortObjectExtended, XMLPortParam, and XMLPortParamLoadOnly.


Member Data Documentation

Referenced by loadAmbientSound(), and ~Level().

Referenced by registerVariables().

Reimplemented from orxonox::BaseObject.

Referenced by setGametypeString().

std::list<BaseObject*> orxonox::Level::objects_ [private]


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

Generated on Tue Jul 28 16:22:41 2009 for Orxonox by  doxygen 1.5.6