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

Go to the source code of this file.

Classes

class  FieldVector
 
class  EditingEnvironment
 

Functions

void clearField (GameMap *map, const MapCoordinate &pos)
 
BuildingplaceBuilding (GameMap *map, const MapCoordinate &pos, const BuildingType *bld, int owner)
 
VehicleplaceUnit (GameMap *map, const MapCoordinate &pos, const VehicleType *veh, int owner)
 
ObjectplaceObject (GameMap *map, const MapCoordinate &pos, const ObjectType *obj, bool force=false)
 
bool placeTerrain (GameMap *map, const MapCoordinate &pos, const TerrainType *terrain, int weather=0)
 
int selectPlayer (GameMap *map)
 
MapCoordinate selectPosition ()
 
Resources putResources (ContainerBase *container, const Resources &resources)
 
FieldVector getFieldsInDistance (GameMap *map, const MapCoordinate &position, int distance)
 
void setReactionFire (Vehicle *vehicle, bool state)
 
EditingEnvironment getEditingEnvironment ()
 

Function Documentation

void clearField ( GameMap map,
const MapCoordinate pos 
)
EditingEnvironment getEditingEnvironment ( )

Definition at line 190 of file mapedcommands.cpp.

FieldVector getFieldsInDistance ( GameMap map,
const MapCoordinate position,
int  distance 
)
Building* placeBuilding ( GameMap map,
const MapCoordinate pos,
const BuildingType bld,
int  owner 
)
Object* placeObject ( GameMap map,
const MapCoordinate pos,
const ObjectType obj,
bool  force = false 
)
bool placeTerrain ( GameMap map,
const MapCoordinate pos,
const TerrainType terrain,
int  weather = 0 
)
Vehicle* placeUnit ( GameMap map,
const MapCoordinate pos,
const VehicleType veh,
int  owner 
)

Definition at line 63 of file mapedcommands.cpp.

References GameMap::getField(), VehicleItem::place(), and MapField::vehicle.

Resources putResources ( ContainerBase container,
const Resources resources 
)

Definition at line 166 of file mapedcommands.cpp.

References ContainerBase::getOwner(), and ContainerBase::putResource().

int selectPlayer ( GameMap map)

Definition at line 98 of file mapedcommands.cpp.

References chooseString(), Player::getName(), GameMap::player, and strrr().

MapCoordinate selectPosition ( )

Definition at line 153 of file mapedcommands.cpp.

References actmap, ASC_PG_Dialog::RunModal(), and SelectFromMap::Show().

void setReactionFire ( Vehicle vehicle,
bool  state 
)