- Timestamp:
- Dec 4, 2017, 4:38:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AsteroidMining_HS17/src/modules/asteroidmining/AsteroidMinable.h
r11618 r11640 41 41 #include "../../orxonox/worldentities/pawns/Pawn.h" 42 42 43 namespace orxonox // tolua_export43 namespace orxonox 44 44 { 45 45 46 46 47 // tolua_export 48 class _OrxonoxExport AsteroidMinable : public Pawn 49 { // tolua_export 47 class _OrxonoxExport AsteroidMinable : public Pawn{ 50 48 51 49 public: 52 50 AsteroidMinable(Context* context);// This constructor is for XML access only! 53 AsteroidMinable(Context* c, float size, Vector3 position );// Call this Constructor from other C-files.51 AsteroidMinable(Context* c, float size, Vector3 position, Vector3 velocity, bool dS);// Call this Constructor from other C-files. 54 52 55 53 virtual ~AsteroidMinable(); … … 62 60 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, const btCollisionShape* cs, float damage, float healthdamage = 0.0f, float shielddamage = 0.0f); 63 61 62 inline void setSize(int s){this->size = s;} 63 inline int getSize(){return this->size;} 64 64 65 66 virtual void setSize(float f); 67 virtual float getSize(); 68 69 virtual void toggleShattering(bool b); 70 71 72 65 inline void toggleShattering(bool b){this->generateSmaller = b;} 66 inline void toggleDropStuff(bool b){this->dropStuff = b;} 73 67 74 68 75 69 protected: 76 // Da neue Argumente reinstellen77 //float asteroidVersion; // Bodenstrich-Konvention?,78 // Wert zwischen 1 und 6 (Spezialdinger?), die Mesh-Form79 float size;80 bool generateSmaller;81 bool initialised;82 70 83 71 Context* context; 84 72 73 int size; 74 bool generateSmaller; 75 bool dropStuff; 76 bool initialised; 77 85 78 virtual void death(); 86 virtual void putStuff();87 79 88 80 … … 91 83 void registerVariables(); 92 84 virtual void spawnChildren(); 85 virtual void putStuff(); 93 86 94 void printArrayString(float thingy[]);// Just for testing 87 // @brief Just for testing. Don-t work anyways. 88 void printArrayString(float thingy[]); 89 // @brief Just for testing. Don-t work anyways. 95 90 void printArrayString(int thingy[]);// Just for testing 96 91
Note: See TracChangeset
for help on using the changeset viewer.