Advanced Strategic Command
loadbi3.h
Go to the documentation of this file.
1 /***************************************************************************
2  loadbi3.h - description
3  -------------------
4  begin :
5  copyright : (C) 2001 by Martin Bickel
6  email : bickel@asc-hq.org
7  ***************************************************************************/
8 
15 /***************************************************************************
16  * *
17  * This program is free software; you can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License, or *
20  * (at your option) any later version. *
21  * *
22  ***************************************************************************/
23 
24 #ifndef loadbi3H
25 #define loadbi3H
26 
27 #include "typen.h"
28 #include "sgstream.h"
29 #include "itemrepository.h"
30 
31 #ifdef converter
32  #error The small editors should not need to use LoadBi3
33 #endif
34 
35 
36 
46 extern void importbattleislemap ( const ASCString& path, const ASCString& mapfilename, TerrainType::Weather* trrn, const ASCString& importTable, ASCString* errorOutput = NULL, bool __fakeMap = false );
47 
54 extern void insertbattleislemap ( int x, int y, const ASCString& path, const ASCString& mapfilename, const ASCString& importTable );
55 
57 extern ASCString getbi3path();
58 
60 extern void setDefaultBI3ImportTranslationTable( const ASCString& filename );
61 
63 extern vector<ASCString> getBI3ImportTables();
64 
65 extern int getterraintranslatenum ( void );
66 extern int getobjectcontainertranslatenum ( void );
67 
68 extern const int* getterraintranslate ( int pos );
69 extern const int* getobjectcontainertranslate ( int pos );
70 
72  public:
73  virtual void readTextFiles( PropertyReadingContainer& prc, const ASCString& fileName, const ASCString& location ) ;
74  virtual void read ( tnstream& stream ) ;
75  virtual void write ( tnstream& stream );
76  virtual ASCString getTypeName();
77 };
78 
79 
80 #endif
const int * getterraintranslate(int pos)
virtual void readTextFiles(PropertyReadingContainer &prc, const ASCString &fileName, const ASCString &location)
Definition: loadbi3.cpp:393
virtual void write(tnstream &stream)
Definition: loadbi3.cpp:381
ASCString getbi3path()
returns the path to the BI3 installation
Definition: loadbi3.cpp:129
The interface for all kinds of IO stream.
The ASCString class provides an abstract way to manipulate strings.
Definition: ascstring.h:14
virtual void read(tnstream &stream)
Definition: loadbi3.cpp:375
virtual ASCString getTypeName()
Definition: loadbi3.cpp:388
void insertbattleislemap(int x, int y, const ASCString &path, const ASCString &mapfilename, const ASCString &importTable)
Imports a Battle Isle map and inserts it into the current ASC map.
Definition: loadbi3.cpp:1688
The IO for many basic classes and structurs of ACS.
void setDefaultBI3ImportTranslationTable(const ASCString &filename)
to prevent the appearnce of the dialog "choose import translation table" when running in batch mode...
Definition: loadbi3.cpp:1659
int getobjectcontainertranslatenum(void)
vector< ASCString > getBI3ImportTables()
returns the names of the import tables that are available
Definition: loadbi3.cpp:366
const int * getobjectcontainertranslate(int pos)
int getterraintranslatenum(void)
void importbattleislemap(const ASCString &path, const ASCString &mapfilename, TerrainType::Weather *trrn, const ASCString &importTable, ASCString *errorOutput=NULL, bool __fakeMap=false)
Imports a Battle Isle map.
Definition: loadbi3.cpp:1666