File: mapedcommands.h

package info (click to toggle)
asc 2.6.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 82,860 kB
  • ctags: 26,395
  • sloc: cpp: 158,660; sh: 11,274; ansic: 6,878; makefile: 604; perl: 138
file content (49 lines) | stat: -rw-r--r-- 1,471 bytes parent folder | download | duplicates (5)
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

#ifndef mapedcommandsH
#define mapedcommandsH

#include "../typen.h"

class GameMap;
class ObjectType;
class BuildingType;
class VehicleType;
class TerrainType;
class Building;
class Vehicle;
class Object;
class Resources;
class ContainerBase;
      
extern void clearField( GameMap* map, const MapCoordinate& pos );

extern Building* placeBuilding( GameMap* map, const MapCoordinate& pos, const BuildingType* bld, int owner );
extern Vehicle* placeUnit( GameMap* map, const MapCoordinate& pos, const VehicleType* veh, int owner );
extern Object* placeObject( GameMap* map, const MapCoordinate& pos, const ObjectType* obj, bool force = false );
extern bool placeTerrain( GameMap* map, const MapCoordinate& pos, const TerrainType* terrain, int weather = 0 );
extern int selectPlayer( GameMap* map );
extern MapCoordinate selectPosition();

extern Resources putResources( ContainerBase* container, const Resources& resources );

class FieldVector : public vector<MapCoordinate> {
   public:
      FieldVector();
      unsigned int size();
   
      MapCoordinate getItem( int i );  // i is 1..N in best LUA tradition...
};


extern FieldVector getFieldsInDistance( GameMap* map, const MapCoordinate& position, int distance );
extern void setReactionFire( Vehicle* vehicle, bool state );

class EditingEnvironment {
   public:
      int getSelectedPlayerPosition() const;
      int getBrushSize() const;
};

extern EditingEnvironment getEditingEnvironment();
      
#endif