Changeset 11736 for code/branches/Presentation_HS17_merge/src/modules/asteroidmining/SpicedAsteroidBelt.h
- Timestamp:
- Feb 11, 2018, 10:31:46 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/asteroidmining/SpicedAsteroidBelt.h
r11731 r11736 49 49 #include "AsteroidMiningPrereqs.h" 50 50 51 #include <string> 52 #include <vector> 53 #include "worldentities/ControllableEntity.h" 54 55 #include "../../orxonox/worldentities/pawns/Pawn.h" 51 #include "core/BaseObject.h" 52 #include "tools/interfaces/Tickable.h" 56 53 57 54 namespace orxonox // tolua_export … … 59 56 60 57 // tolua_export 61 class _AsteroidMiningExport SpicedAsteroidBelt : public Pawn // need pawn to get tick for clean argument passing58 class _AsteroidMiningExport SpicedAsteroidBelt : public BaseObject, public Tickable 62 59 { // tolua_export 63 60 64 61 public: 65 62 SpicedAsteroidBelt(Context* context);// This constructor is for XML access only! 63 virtual ~SpicedAsteroidBelt(); 66 64 67 virtual ~SpicedAsteroidBelt();68 65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 69 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override;70 66 virtual void tick(float dt) override; 71 72 67 73 68 inline void setCount(float s){this->count = s;} … … 109 104 protected: 110 105 111 Context* context;112 113 106 float count; //!< Approximate number of asteroids 114 107 float mDensity; //!< Approximate commonness of asteroids that yield stuff, value between 0 and 1; … … 131 124 132 125 private: 133 void registerVariables();134 135 126 virtual void create(); 136 127
Note: See TracChangeset
for help on using the changeset viewer.