Advanced Strategic Command
Classes | Functions
common.h File Reference
#include "../typen.h"
#include "../paradialog.h"
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  StringArray
class  PropertyDialog


GameMapgetActiveMap ()
const ObjectTypegetObjectType (int id)
const BuildingTypegetBuildingType (int id)
const VehicleTypegetUnitType (int id)
const TerrainTypegetTerrainType (int id)
int selectString (const ASCString &title, const StringArray &entries, int defaultEntry=-1)
GameMapgetLoadingMap ()
void setLocalizedEventMessage (GameMap *map, int eventID, const ASCString &message)
void setLocalizedContainerName (GameMap *map, const MapCoordinate &pos, const std::string &name)
MapCoordinate getCursorPosition (const GameMap *gamemap)
void setCursorPosition (const GameMap *gamemap, const MapCoordinate &pos)
void assertSuccess (const ActionResult &result)

Function Documentation

void assertSuccess ( const ActionResult result)

Definition at line 218 of file common.cpp.

References ActionResult::getMessage(), and ActionResult::successful().

GameMap* getActiveMap ( )

Definition at line 45 of file common.cpp.

References actmap.

const BuildingType* getBuildingType ( int  id)

Definition at line 55 of file common.cpp.

References buildingTypeRepository.

MapCoordinate getCursorPosition ( const GameMap gamemap)

Definition at line 203 of file common.cpp.

References GameMap::getCursor().

GameMap* getLoadingMap ( )

Definition at line 166 of file common.cpp.

References eventLocalizationMap.

const ObjectType* getObjectType ( int  id)

Definition at line 50 of file common.cpp.

References objectTypeRepository.

const TerrainType* getTerrainType ( int  id)

Definition at line 65 of file common.cpp.

References terrainTypeRepository.

const VehicleType* getUnitType ( int  id)

Definition at line 60 of file common.cpp.

References vehicleTypeRepository.

int selectString ( const ASCString title,
const StringArray entries,
int  defaultEntry = -1 

Definition at line 153 of file common.cpp.

References new_chooseString(), and StringArray::values.

void setCursorPosition ( const GameMap gamemap,
const MapCoordinate pos 
void setLocalizedContainerName ( GameMap map,
const MapCoordinate pos,
const std::string &  name 
void setLocalizedEventMessage ( GameMap map,
int  eventID,
const ASCString message 

Definition at line 172 of file common.cpp.

References GameMap::events.