Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 135 of file loadbi3.cpp.


Member Function Documentation

void Bi3MapTranslationTable::read tnstream stream  ) 
 

Definition at line 234 of file loadbi3.cpp.

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

void Bi3MapTranslationTable::runTextIO PropertyContainer pc  ) 
 

Definition at line 264 of file loadbi3.cpp.

References Bi3MapTranslationTable::Terraincombixlat::bigraph, Bi3MapTranslationTable::Objecttranslataion::BIpic, Bi3MapTranslationTable::Terrain2id::BIpic, fatalError(), object2IDtranslate, Bi3MapTranslationTable::Terraincombixlat::objectid, Bi3MapTranslationTable::Objecttranslataion::objects, objecttranslate, terrain2idTranslation, terraincombixlat, Bi3MapTranslationTable::Objecttranslataion::terrainID, Bi3MapTranslationTable::Terraincombixlat::terrainid, Bi3MapTranslationTable::Terrain2id::terrainid, terraintranslation, Bi3MapTranslationTable::Objecttranslataion::terrainWeather, Bi3MapTranslationTable::Terraincombixlat::terrainweather, and Bi3MapTranslationTable::Terrain2id::weather.

Referenced by BI3TranslationTableLoader::readTextFiles().

void Bi3MapTranslationTable::write tnstream stream  )  const
 

Definition at line 251 of file loadbi3.cpp.

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


Member Data Documentation

ASCString Bi3MapTranslationTable::filename
 

Definition at line 230 of file loadbi3.cpp.

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

ASCString Bi3MapTranslationTable::location
 

Definition at line 230 of file loadbi3.cpp.

Referenced by read(), BI3TranslationTableLoader::readTextFiles(), 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 224 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 219 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 163 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 189 of file loadbi3.cpp.

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

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 138 of file loadbi3.cpp.

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 24 02:16:23 2008 for Advanced Strategic Command by  doxygen 1.4.2