File: mapedcommands.i

package info (click to toggle)
asc 2.4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 75,080 kB
  • ctags: 24,943
  • sloc: cpp: 155,023; sh: 8,829; ansic: 6,890; makefile: 650; perl: 138
file content (43 lines) | stat: -rw-r--r-- 1,365 bytes parent folder | download | duplicates (2)
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
%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 );