LandscapeDefinition Class Reference

#include <LandscapeDefinition.h>

List of all members.

Public Member Functions

 LandscapeDefinition (const char *tex="", const char *defn="", unsigned int seed=0, const char *name="")
const char * getTex ()
const char * getDefn ()
const char * getName ()
unsigned int getSeed ()
bool writeMessage (NetBuffer &buffer)
bool readMessage (NetBufferReader &reader)

Protected Attributes

std::string tex_
std::string defn_
std::string name_
unsigned int seed_


Detailed Description

Definition at line 27 of file LandscapeDefinition.h.


Constructor & Destructor Documentation

LandscapeDefinition::LandscapeDefinition ( const char *  tex = "",
const char *  defn = "",
unsigned int  seed = 0,
const char *  name = "" 
)

Definition at line 29 of file LandscapeDefinition.cpp.


Member Function Documentation

const char* LandscapeDefinition::getTex (  )  [inline]

Definition at line 36 of file LandscapeDefinition.h.

References tex_.

Referenced by ServerNewGameState::addTanksToGame(), LandscapeDefinitionCache::setDefinition(), ClientReloadAdaptor::showLandscapeInfo(), and OptionsScorched::updateLevelOptions().

const char* LandscapeDefinition::getDefn (  )  [inline]

Definition at line 37 of file LandscapeDefinition.h.

References defn_.

Referenced by ServerNewGameState::addTanksToGame(), LandscapeDefinitionCache::setDefinition(), ClientReloadAdaptor::showLandscapeInfo(), and OptionsScorched::updateLevelOptions().

const char* LandscapeDefinition::getName (  )  [inline]

Definition at line 38 of file LandscapeDefinition.h.

References name_.

Referenced by ClientNewGameHandler::actualProcessMessage(), AnimatedBackdropDialog::init(), and ClientReloadAdaptor::showLandscapeInfo().

unsigned int LandscapeDefinition::getSeed (  )  [inline]

Definition at line 39 of file LandscapeDefinition.h.

References seed_.

Referenced by LandscapeDefinitionCache::getSeed().

bool LandscapeDefinition::writeMessage ( NetBuffer buffer  ) 

Definition at line 38 of file LandscapeDefinition.cpp.

References NetBuffer::addToBuffer(), defn_, name_, seed_, and tex_.

Referenced by ComsLevelMessage::writeMessage().

bool LandscapeDefinition::readMessage ( NetBufferReader reader  ) 

Definition at line 47 of file LandscapeDefinition.cpp.

References defn_, NetBufferReader::getFromBuffer(), name_, seed_, and tex_.

Referenced by ComsLevelMessage::readMessage().


Member Data Documentation

std::string LandscapeDefinition::tex_ [protected]

Definition at line 45 of file LandscapeDefinition.h.

Referenced by getTex(), readMessage(), and writeMessage().

std::string LandscapeDefinition::defn_ [protected]

Definition at line 46 of file LandscapeDefinition.h.

Referenced by getDefn(), readMessage(), and writeMessage().

std::string LandscapeDefinition::name_ [protected]

Definition at line 47 of file LandscapeDefinition.h.

Referenced by getName(), readMessage(), and writeMessage().

unsigned int LandscapeDefinition::seed_ [protected]

Definition at line 48 of file LandscapeDefinition.h.

Referenced by getSeed(), readMessage(), and writeMessage().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:03 2009 for Scorched3D by  doxygen 1.5.3