|
Revision 1, 1.9 kB
(checked in by poillubo, 2 years ago)
|
* initial import
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
#ifndef CONSTRUNIT_HH |
|---|
| 22 |
#define CONSTRUNIT_HH |
|---|
| 23 |
|
|---|
| 24 |
#include <cmath> |
|---|
| 25 |
|
|---|
| 26 |
#include "resourceitem.hh" |
|---|
| 27 |
#include "constrproperties.hh" |
|---|
| 28 |
#include "unit.hh" |
|---|
| 29 |
#include "utils.hh" |
|---|
| 30 |
|
|---|
| 31 |
class Building; |
|---|
| 32 |
|
|---|
| 33 |
class ConstrUnit : public Unit |
|---|
| 34 |
{ |
|---|
| 35 |
|
|---|
| 36 |
protected: |
|---|
| 37 |
Building * currentConstruction; |
|---|
| 38 |
Resource * currentResource; |
|---|
| 39 |
ResourceItem * currentResourceItem; |
|---|
| 40 |
|
|---|
| 41 |
public: |
|---|
| 42 |
ConstrUnit(Player * owner, uint16 x, uint16 y, SubGenderName subgender, bool built=false); |
|---|
| 43 |
~ConstrUnit() {}; |
|---|
| 44 |
Building * getCurrentConstruction(); |
|---|
| 45 |
void setCurrentConstruction(Building * currentconstruction); |
|---|
| 46 |
Resource * getCurrentResource(); |
|---|
| 47 |
void setCurrentResource(Resource * currentresource); |
|---|
| 48 |
void setCurrentResourceQuantity(uint32 quantity); |
|---|
| 49 |
ResourceItem * getCurrentResourceItem(); |
|---|
| 50 |
void setCurrentResourceItem(ResourceItem * currentresourceitem); |
|---|
| 51 |
void askConstruction(???); |
|---|
| 52 |
void build(GenderName g, SubGenderName sg); |
|---|
| 53 |
ConstrUnitProperties * getConstrUnitProperties(); |
|---|
| 54 |
virtual void updateState(); |
|---|
| 55 |
ConstrUnit * castToConstrUnit(); |
|---|
| 56 |
}; |
|---|
| 57 |
|
|---|
| 58 |
#include "builder.hh" |
|---|
| 59 |
|
|---|
| 60 |
#endif |
|---|