Advanced Strategic Command
containercontrols.h
Go to the documentation of this file.
1 /***************************************************************************
2  cargodialog.cpp - description
3  -------------------
4  begin : Tue Oct 24 2000
5  copyright : (C) 2000 by Martin Bickel
6  email : bickel@asc-hq.org
7  ***************************************************************************/
8 
9 /***************************************************************************
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  ***************************************************************************/
17 
18 #ifndef containercontrolsH
19 #define containercontrolsH
20 
21 #include "containerbase.h"
22 
23 class VehicleMovement;
24 class Player;
25 class GameMap;
26 
28  const ContainerBase* container;
29 
30  const Player& getPlayer() const;
31  const GameMap* getMap() const;
32  public:
33  ContainerConstControls( const ContainerBase* cb ) : container( cb ) {};
34 
35  protected:
36  bool unitProductionAvailable() const;
37 
38  public:
44  int unitProductionPrerequisites( const VehicleType* type, bool internally ) const;
45 
46 };
47 
48 
49 #endif
The base class for buildings and vehicles.
ContainerConstControls(const ContainerBase *cb)
int unitProductionPrerequisites(const VehicleType *type, bool internally) const
returns 0 if the unit is producable and != 0 otherwise.
bool unitProductionAvailable() const
The class describing properties that are common to all vehicles of a certain kind.
Definition: vehicletype.h:177
The parent class of Vehicle and Building; The name Container originates from Battle Isle...
Definition: containerbase.h:40
the different players in ASC. There may be 8 players (0..7) and neutral units (8) ...
Definition: player.h:99
The map. THE central structure of ASC, which holds everything not globally available together...
Definition: gamemap.h:182