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

loadbi3.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           loadbi3.h  -  description
00003                              -------------------
00004     begin                :
00005     copyright            : (C) 2001 by Martin Bickel
00006     email                : bickel@asc-hq.org
00007  ***************************************************************************/
00008 
00015 /***************************************************************************
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  ***************************************************************************/
00023 
00024 #ifndef loadbi3H
00025 #define loadbi3H
00026 
00027 #include "typen.h"
00028 #include "sgstream.h"
00029 #include "itemrepository.h"
00030 
00031 #ifdef converter
00032  #error The small editors should not need to use LoadBi3
00033 #endif
00034 
00035 
00036 
00046 extern void importbattleislemap ( const ASCString& path, const ASCString& mapfilename, TerrainType::Weather* trrn, const ASCString& importTable, ASCString* errorOutput = NULL, bool __fakeMap = false );
00047 
00054 extern void insertbattleislemap ( int x, int y, const ASCString& path, const ASCString& mapfilename, const ASCString& importTable );
00055 
00057 extern ASCString getbi3path();
00058 
00060 extern void setDefaultBI3ImportTranslationTable( const ASCString& filename );
00061 
00063 extern vector<ASCString> getBI3ImportTables();
00064 
00065 extern int getterraintranslatenum ( void );
00066 extern int getobjectcontainertranslatenum ( void );
00067 
00068 extern const int* getterraintranslate ( int pos );
00069 extern const int* getobjectcontainertranslate ( int pos );
00070 
00071 class BI3TranslationTableLoader: public TextFileDataLoader {
00072    public:
00073       virtual void readTextFiles( PropertyReadingContainer& prc, const ASCString& fileName, const ASCString& location ) ;
00074       virtual void read ( tnstream& stream ) ;
00075       virtual void write ( tnstream& stream );
00076       virtual ASCString getTypeName();
00077 };
00078 
00079 
00080 #endif

Generated on Tue Jun 24 01:27:44 2008 for Advanced Strategic Command by  doxygen 1.4.2