1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
%module asc
%include "std_vector.i"
%include "std_string.i"
%include "typemaps.i"
%{
#include <string>
#include "mapedcommands.h"
#include "../gamemap.h"
#include "../mapalgorithms.h"
#include "../util/messaginghub.h"
%}
%include "common.i"
void clearField( GameMap* map, const MapCoordinate& pos );
MapCoordinate getNeighbouringFieldCoordinate( const MapCoordinate& pos, int direc);
Object* placeObject( GameMap* map, const MapCoordinate& pos, const ObjectType* obj, bool force = false );
Building* placeBuilding( GameMap* map, const MapCoordinate& pos, const BuildingType* bld, int owner );
Vehicle* placeUnit( GameMap* map, const MapCoordinate& pos, const VehicleType* veh, int owner );
bool placeTerrain( GameMap* map, const MapCoordinate& pos, const TerrainType* terrain, int weather = 0 );
//! opens a dialog and let the user select a player from the list of players on the map
int selectPlayer( GameMap* map );
class FieldVector {
public:
FieldVector();
unsigned int size();
MapCoordinate getItem( int i );
};
FieldVector getFieldsInDistance( GameMap* map, const MapCoordinate& position, int distance );
//! let the user select a field from the map
MapCoordinate selectPosition();
Resources putResources( ContainerBase* container, const Resources& resources );
void setReactionFire( Vehicle* vehicle, bool state );
class EditingEnvironment {
public:
int getSelectedPlayerPosition() const;
int getBrushSize() const;
};
extern EditingEnvironment getEditingEnvironment();
|