00001 /* 00002 * unitBuilder.h 00003 * 00004 * Created on: Mar 2, 2013 00005 * Author: sushil 00006 */ 00007 00008 #ifndef UNITBUILDER_H_ 00009 #define UNITBUILDER_H_ 00010 00011 #include <aspect.h> 00012 #include <enums.h> 00013 00014 namespace FastEcslent { 00015 00016 class Building; 00017 00018 class Builder: public UnitAspect { 00019 00020 public: 00021 00022 double timeLeft; 00023 double timeNeeded; 00024 Building *building; 00025 EntityType entityType; 00026 00027 Builder(Building *ent, UnitAspectType ast, EntityType entType); 00028 ~Builder(); 00029 00030 virtual void init(); 00031 virtual void tick(double dt); 00032 00033 void startBuildingNextEntity(); 00034 00035 }; 00036 00037 00038 00039 } 00040 00041 #endif /* UNITBUILDER_H_ */