Advanced Strategic Command
Functions
common.cpp File Reference
#include "../sg.h"
#include "../ascstring.h"
#include "../vehicle.h"
#include "../gamemap.h"
#include "../spfst.h"
#include "../spfst-legacy.h"
#include "../itemrepository.h"
#include "../dlg_box.h"
#include "../paradialog.h"
#include "../gameeventsystem.h"
#include "../loaders.h"
#include "../accessconstraints.h"
#include <pgpropertyfield_integer.h>
#include <pgpropertyfield_intdropdown.h>
#include <pgpropertyfield_checkbox.h>
#include <pgpropertyfield_string.h>
#include <pgpropertyfield_button.h>
#include <pgpropertyeditor.h>
#include "common.h"
Include dependency graph for common.cpp:

Go to the source code of this file.

Functions

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)
 
GameMapgetLoadingMap ()
 
void setLocalizedEventMessage (GameMap *eventLocalizationMap, 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 
)

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 eventLocalizationMap,
int  eventID,
const ASCString message 
)

Definition at line 172 of file common.cpp.

References GameMap::events.