Scheme Class Reference
[Engine Module]

#include <scheme.h>

Inheritance diagram for Scheme:

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

List of all members.

Public Member Functions

 Scheme (const char *id)
virtual ~Scheme ()
MaterialGetMaterial (const string &id) const
byte_t GetMaterialsCount () const
FragmentGetFragment (const string &id) const
byte_t GetTerrain (const string &id) const
byte_t GetTerrainsCount () const
bool HasModels (const Fragment &fragment, MapEnums::Segment segment) const
const string & GetRandomModel (const Fragment &fragment, MapEnums::Segment segment) const

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)
bool ReadMaterials (Serializer &serializer)
bool ReadTerrains (Serializer &serializer)
bool ReadFragments (Serializer &serializer)
bool ReadFragment (Serializer &serializer, Fragment &fragment)
bool ReadModels (Serializer &serializer, Fragment &fragment)
bool ReadSurface (Serializer &serializer, Fragment &fragment)

Protected Attributes

string name
 Full scheme name.
string author_name
string author_contact
MaterialsMap materials
FragmentsMap fragments
TerrainsMap terrains
vector< Model * > models

Private Types

typedef hash_map
< string, Material * > 
MaterialsMap
typedef hash_map
< string, Fragment * > 
FragmentsMap
typedef hash_map
< string, byte_t
TerrainsMap

Classes

struct  Fragment
struct  Material


Member Typedef Documentation

typedef hash_map<string, Material *> Scheme::MaterialsMap [private]

typedef hash_map<string, Fragment *> Scheme::FragmentsMap [private]

typedef hash_map<string, byte_t> Scheme::TerrainsMap [private]


Constructor & Destructor Documentation

Scheme::Scheme ( const char *  id  ) 

Constructor.

Scheme::~Scheme (  )  [virtual]

Destructor.


Member Function Documentation

Scheme::Material * Scheme::GetMaterial ( const string &  id  )  const [inline]

byte_t Scheme::GetMaterialsCount (  )  const [inline]

Scheme::Fragment * Scheme::GetFragment ( const string &  id  )  const [inline]

byte_t Scheme::GetTerrain ( const string &  id  )  const [inline]

byte_t Scheme::GetTerrainsCount (  )  const [inline]

bool Scheme::HasModels ( const Fragment fragment,
MapEnums::Segment  segment 
) const [inline]

const string & Scheme::GetRandomModel ( const Fragment fragment,
MapEnums::Segment  segment 
) const [inline]

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

Reimplemented from Preloaded.

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

Reimplemented from Preloaded.

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

Reimplemented from Preloaded.

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

Reimplemented from Preloaded.

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

Reimplemented from Preloaded.

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

Reimplemented from Preloaded.

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

Todo:
Implement

Reimplemented from Preloaded.

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

Todo:
Implement

Reimplemented from Preloaded.

bool Scheme::ReadMaterials ( Serializer serializer  )  [protected]

bool Scheme::ReadTerrains ( Serializer serializer  )  [protected]

bool Scheme::ReadFragments ( Serializer serializer  )  [protected]

bool Scheme::ReadFragment ( Serializer serializer,
Fragment fragment 
) [protected]

bool Scheme::ReadModels ( Serializer serializer,
Fragment fragment 
) [protected]

bool Scheme::ReadSurface ( Serializer serializer,
Fragment fragment 
) [protected]


Member Data Documentation

string Scheme::name [protected]

Full scheme name.

string Scheme::author_name [protected]

string Scheme::author_contact [protected]

MaterialsMap Scheme::materials [protected]

FragmentsMap Scheme::fragments [protected]

TerrainsMap Scheme::terrains [protected]

vector<Model *> Scheme::models [protected]


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