Advanced Strategic Command
controls.h
Go to the documentation of this file.
1 
7 /*
8  This file is part of Advanced Strategic Command; http://www.asc-hq.de
9  Copyright (C) 1994-2010 Martin Bickel and Marc Schellenberger
10 
11  This program is free software; you can redistribute it and/or modify
12  it under the terms of the GNU General Public License as published by
13  the Free Software Foundation; either version 2 of the License, or
14  (at your option) any later version.
15 
16  This program is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program; see the file COPYING. If not, write to the
23  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
24  Boston, MA 02111-1307 USA
25 */
26 
27 #if defined(karteneditor)
28  #error the mapeditor should not need to use controls.h !
29 #endif
30 
31 
32 #ifndef controlsH
33 #define controlsH
34 #include "typen.h"
35 #include "astar2.h"
36 
37 
41 extern pair<int,int> calcMoveMalus( const MapCoordinate3D& start,
42  const MapCoordinate3D& dest,
43  const Vehicle* vehicle,
44  WindMovement* wm = NULL,
45  bool* inhibitAttack = NULL,
46  bool container2container = false );
47 
48 extern bool checkUnitsForCrash( Player& player, ASCString& text );
49 
50 
51 #endif
pair< int, int > calcMoveMalus(const MapCoordinate3D &start, const MapCoordinate3D &dest, const Vehicle *vehicle, WindMovement *wm=NULL, bool *inhibitAttack=NULL, bool container2container=false)
Definition: controls.cpp:64
The ASCString class provides an abstract way to manipulate strings.
Definition: ascstring.h:14
caches some calculations for the effects that wind has on the movement of units
Coordinate on the map including height.
Definition: typen.h:238
the different players in ASC. There may be 8 players (0..7) and neutral units (8) ...
Definition: player.h:99
bool checkUnitsForCrash(Player &player, ASCString &text)
Definition: controls.cpp:49
Interface for the A* pathfinding algorithm.