Advanced Strategic Command
Functions
commands.h File Reference
#include "../actions/actionresult.h"
Include dependency graph for commands.h:

Go to the source code of this file.

Functions

GameMaploadGameLua (const char *filename)
 
ActionResult unitAttack (GameMap *actmap, int veh, const MapCoordinate &target, int weapon=-1)
 
ActionResult unitMovement (GameMap *actmap, int unitID, const MapCoordinate &destination, int destinationHeigth)
 
ActionResult unitMovement (GameMap *actmap, int unitID, const MapCoordinate &destination)
 
ActionResult putMineFunc (GameMap *actmap, int veh, const MapCoordinate &destination, int mineType)
 
ActionResult removeMineFunc (GameMap *actmap, int veh, const MapCoordinate &destination)
 
ActionResult unitPutObject (GameMap *actmap, int veh, const MapCoordinate &destination, int objectID)
 
ActionResult unitRemoveObject (GameMap *actmap, int veh, const MapCoordinate &destination, int objectID)
 
ActionResult unitDestructBuilding (GameMap *actmap, int veh, const MapCoordinate &destination)
 
ActionResult transferControl (GameMap *actmap, int containerID, int newOwner)
 
ActionResult trainUnit (GameMap *actmap, int containerID, int unitID)
 
ActionResult constructUnit (GameMap *actmap, int containerID, const MapCoordinate &position, int unitID)
 
ActionResult constructBuilding (GameMap *actmap, int unitID, const MapCoordinate &position, int buildingTypeID)
 
ActionResult serviceCommand (GameMap *actmap, int providingContainerID, int receivingContainerID, int type, int amount)
 
ActionResult repairUnit (GameMap *actmap, int repairerID, int damagedUnitID)
 
ActionResult unitReactionFireEnable (GameMap *actmap, int unitID, bool enabled)
 
ActionResult unitPowerGenerationEnable (GameMap *actmap, int unitID, int enabled)
 
ActionResult unitJump (GameMap *actmap, int veh, const MapCoordinate &destination)
 
ActionResult selfDestruct (GameMap *actmap, int containerID)
 
ActionResult recycleUnit (GameMap *actmap, int containerID, int unitID)
 
ActionResult buildProductionLine (GameMap *actmap, int containerID, int vehicleTypeID)
 
ActionResult removeProductionLine (GameMap *actmap, int containerID, int vehicleTypeID)
 
ActionResult repairBuilding (GameMap *actmap, int buildingID)
 
ActionResult setResourceProcessingRate (GameMap *actmap, int containerID, int amount)
 
ActionResult cargoUnitMove (GameMap *actmap, int unitID, int targetContainerID)
 
ActionResult setDiplomacy (GameMap *actmap, int actingPlayer, int towardsPlayer, bool sneak, int newState)
 
ActionResult cancelResearch (GameMap *actmap, int actingPlayer)
 
ActionResult setResearchGoal (GameMap *actmap, int actingPlayer, int techID)
 
ActionResult renameContainer (GameMap *actmap, int unitID, const ASCString &publicName, const ASCString &privateName)
 
void endTurn ()
 
void endTurn_headLess (GameMap *gamemap)
 ends a turn. All user interaction is avoided. Intended for unit tests and other automated tasks More...
 
VehiclegetSelectedUnit (GameMap *map)
 

Function Documentation

ActionResult buildProductionLine ( GameMap actmap,
int  containerID,
int  vehicleTypeID 
)
ActionResult cancelResearch ( GameMap actmap,
int  actingPlayer 
)
ActionResult cargoUnitMove ( GameMap actmap,
int  unitID,
int  targetContainerID 
)
ActionResult constructBuilding ( GameMap actmap,
int  unitID,
const MapCoordinate position,
int  buildingTypeID 
)
ActionResult constructUnit ( GameMap actmap,
int  containerID,
const MapCoordinate position,
int  unitID 
)
void endTurn ( )

Definition at line 723 of file commands.cpp.

References actmap, getDefaultMapDisplay(), and next_turn().

void endTurn_headLess ( GameMap gamemap)

ends a turn. All user interaction is avoided. Intended for unit tests and other automated tasks

Definition at line 728 of file commands.cpp.

References next_turn().

Vehicle* getSelectedUnit ( GameMap map)
GameMap* loadGameLua ( const char *  filename)

Definition at line 65 of file commands.cpp.

References actmap, loadGameFromFile(), and repaintMap.

ActionResult putMineFunc ( GameMap actmap,
int  veh,
const MapCoordinate destination,
int  mineType 
)
ActionResult recycleUnit ( GameMap actmap,
int  containerID,
int  unitID 
)
ActionResult removeMineFunc ( GameMap actmap,
int  veh,
const MapCoordinate destination 
)
ActionResult removeProductionLine ( GameMap actmap,
int  containerID,
int  vehicleTypeID 
)
ActionResult renameContainer ( GameMap actmap,
int  unitID,
const ASCString publicName,
const ASCString privateName 
)
ActionResult repairBuilding ( GameMap actmap,
int  buildingID 
)
ActionResult repairUnit ( GameMap actmap,
int  repairerID,
int  damagedUnitID 
)
ActionResult selfDestruct ( GameMap actmap,
int  containerID 
)
ActionResult serviceCommand ( GameMap actmap,
int  providingContainerID,
int  receivingContainerID,
int  type,
int  amount 
)
ActionResult setDiplomacy ( GameMap actmap,
int  actingPlayer,
int  towardsPlayer,
bool  sneak,
int  newState 
)
ActionResult setResearchGoal ( GameMap actmap,
int  actingPlayer,
int  techID 
)
ActionResult setResourceProcessingRate ( GameMap actmap,
int  containerID,
int  amount 
)
ActionResult trainUnit ( GameMap actmap,
int  containerID,
int  unitID 
)
ActionResult transferControl ( GameMap actmap,
int  containerID,
int  newOwner 
)
ActionResult unitAttack ( GameMap actmap,
int  veh,
const MapCoordinate target,
int  weapon = -1 
)
ActionResult unitDestructBuilding ( GameMap actmap,
int  veh,
const MapCoordinate destination 
)
ActionResult unitJump ( GameMap actmap,
int  veh,
const MapCoordinate destination 
)
ActionResult unitMovement ( GameMap actmap,
int  unitID,
const MapCoordinate destination,
int  destinationHeigth 
)
ActionResult unitMovement ( GameMap actmap,
int  unitID,
const MapCoordinate destination 
)

Definition at line 118 of file commands.cpp.

References unitMovement().

ActionResult unitPowerGenerationEnable ( GameMap actmap,
int  unitID,
int  enabled 
)
ActionResult unitPutObject ( GameMap actmap,
int  veh,
const MapCoordinate destination,
int  objectID 
)
ActionResult unitReactionFireEnable ( GameMap actmap,
int  unitID,
bool  enabled 
)
ActionResult unitRemoveObject ( GameMap actmap,
int  veh,
const MapCoordinate destination,
int  objectID 
)

Definition at line 188 of file commands.cpp.

References unitPutObject().