Advanced Strategic Command
unitcostcalculator.h
Go to the documentation of this file.
1 /***************************************************************************
2  * *
3  * This program is free software; you can redistribute it and/or modify *
4  * it under the terms of the GNU General Public License as published by *
5  * the Free Software Foundation; either version 2 of the License, or *
6  * (at your option) any later version. *
7  * *
8  ***************************************************************************/
9 
10 
11 #ifndef unitcostcalculationH
12 #define unitcostcalculationH
13 
14 class VehicleType;
15 class Resources;
16 class ASCString;
17 
19  public:
20  virtual Resources productionCost( const VehicleType* vehicle ) = 0;
21  virtual ASCString getCalculatorName() = 0;
22  virtual ~UnitCostCalculator() {};
23 };
24 
25 #endif
virtual Resources productionCost(const VehicleType *vehicle)=0
virtual ASCString getCalculatorName()=0
The ASCString class provides an abstract way to manipulate strings.
Definition: ascstring.h:14
The class describing properties that are common to all vehicles of a certain kind.
Definition: vehicletype.h:177
Resources are basically the currency of ASC.
Definition: typen.h:97