Changeset 11736 for code/branches/Presentation_HS17_merge/src/modules/asteroidmining/SpicedAsteroidField.h
- Timestamp:
- Feb 11, 2018, 10:31:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/asteroidmining/SpicedAsteroidField.h
r11731 r11736 43 43 #include "AsteroidMiningPrereqs.h" 44 44 45 #include <string> 46 #include <vector> 47 48 #include "worldentities/ControllableEntity.h" 49 #include "../../orxonox/worldentities/pawns/Pawn.h" 45 #include "core/BaseObject.h" 46 #include "tools/interfaces/Tickable.h" 50 47 51 48 namespace orxonox // tolua_export … … 53 50 54 51 // tolua_export 55 class _AsteroidMiningExport SpicedAsteroidField : public Pawn // need pawn to get tick for clean argument passing52 class _AsteroidMiningExport SpicedAsteroidField : public BaseObject, public Tickable 56 53 { // tolua_export 57 54 58 55 public: 59 SpicedAsteroidField(Context* context); // This constructor is for XML access only!60 SpicedAsteroidField(Context* c, Vector3 p, int minS, int maxS, int w, int count, bool f, float mD, float fD);56 SpicedAsteroidField(Context* context); 57 virtual ~SpicedAsteroidField(); 61 58 62 virtual ~SpicedAsteroidField();63 59 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 64 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override;65 60 virtual void tick(float dt) override; 66 67 61 68 62 inline void setCount(float s){this->count = s;} … … 92 86 protected: 93 87 94 Context* context;95 96 88 float count; //!< Number of asteroids generated 97 89 float mDensity; //!< Mineral density, between 0 and 1; … … 108 100 109 101 private: 110 void registerVariables();111 112 102 virtual void create(); 113 103
Note: See TracChangeset
for help on using the changeset viewer.