Bi3MapTranslationTable Class Reference

a table to translate a Battle Isle map into an ASC map More...

List of all members.

Public Member Functions

void runTextIO (PropertyContainer &pc)
void read (tnstream &stream)
void write (tnstream &stream) const

Public Attributes

vector< pair< int, int > > terraintranslation
 The first entry is the picture number that is going to be replaced by the picture number of the second entry.
vector< Terrain2idterrain2idTranslation
 The first entry is the picture number that is going to be replaced by the terrain with the ID of the second number and the weather of the third number.
vector< Terraincombixlatterraincombixlat
 This is a special translation for the fields that must be translated to a terrain AND an additional object.
vector< Objecttranslataionobjecttranslate
 These BI object pictures can be translated to up to four ASC objects.
vector< pair< int, int > > object2IDtranslate
 These BI object pictures can be translated to ASC objects.
ASCString filename
ASCString location

Classes

struct  Objecttranslataion
struct  Terrain2id
struct  Terraincombixlat


Detailed Description

a table to translate a Battle Isle map into an ASC map

Definition at line 136 of file loadbi3.cpp.


Member Function Documentation

void Bi3MapTranslationTable::runTextIO ( PropertyContainer pc  ) 

Definition at line 265 of file loadbi3.cpp.

References PropertyContainer::addIntegerArray(), fatalError(), PropertyContainer::find(), object2IDtranslate, objecttranslate, terrain2idTranslation, terraincombixlat, and terraintranslation.

Referenced by BI3TranslationTableLoader::readTextFiles().

void Bi3MapTranslationTable::read ( tnstream stream  ) 

Definition at line 235 of file loadbi3.cpp.

References filename, location, object2IDtranslate, objecttranslate, readClassContainer(), tnstream::readInt(), tnstream::readString(), terrain2idTranslation, terraincombixlat, and terraintranslation.

void Bi3MapTranslationTable::write ( tnstream stream  )  const

Definition at line 252 of file loadbi3.cpp.

References filename, location, object2IDtranslate, objecttranslate, terrain2idTranslation, terraincombixlat, terraintranslation, writeClassContainer(), tnstream::writeInt(), and tnstream::writeString().


Member Data Documentation

vector< pair<int,int> > Bi3MapTranslationTable::terraintranslation

The first entry is the picture number that is going to be replaced by the picture number of the second entry.

Definition at line 139 of file loadbi3.cpp.

Referenced by read(), runTextIO(), and write().

vector< Terrain2id > Bi3MapTranslationTable::terrain2idTranslation

The first entry is the picture number that is going to be replaced by the terrain with the ID of the second number and the weather of the third number.

Definition at line 164 of file loadbi3.cpp.

Referenced by read(), runTextIO(), and write().

vector<Terraincombixlat> Bi3MapTranslationTable::terraincombixlat

This is a special translation for the fields that must be translated to a terrain AND an additional object.

Definition at line 190 of file loadbi3.cpp.

Referenced by read(), runTextIO(), and write().

vector<Objecttranslataion> Bi3MapTranslationTable::objecttranslate

These BI object pictures can be translated to up to four ASC objects.

The first entry is again the BI picture number, the following four the pictures for the ASC objects. A -1 is used if the entry is not used. It does not matter if you use " -1, 1500, -1 , -1 " or " 1500, -1 , -1, -1" or any other order.

Definition at line 220 of file loadbi3.cpp.

Referenced by read(), runTextIO(), and write().

vector< pair<int,int> > Bi3MapTranslationTable::object2IDtranslate

These BI object pictures can be translated to ASC objects.

The first entry is again the BI picture number, the second is the ID of the ASC object.

Definition at line 225 of file loadbi3.cpp.

Referenced by read(), runTextIO(), and write().

ASCString Bi3MapTranslationTable::filename

Definition at line 231 of file loadbi3.cpp.

Referenced by read(), BI3TranslationTableLoader::readTextFiles(), and write().

ASCString Bi3MapTranslationTable::location

Definition at line 231 of file loadbi3.cpp.

Referenced by read(), BI3TranslationTableLoader::readTextFiles(), and write().


The documentation for this class was generated from the following file:
Generated on Mon May 21 01:46:23 2012 for Advanced Strategic Command by  doxygen 1.5.1