Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2017, 4:38:17 PM (8 years ago)
Author:
remartin
Message:

Das Aufteilen funktioniert nun gut. AsteroidField fertiggestellt und mit dokumentieren begonnen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AsteroidMining_HS17/src/modules/asteroidmining/AsteroidMinable.h

    r11618 r11640  
    4141#include "../../orxonox/worldentities/pawns/Pawn.h"
    4242
    43 namespace orxonox // tolua_export
     43namespace orxonox
    4444{
    4545
    4646
    47     // tolua_export
    48     class _OrxonoxExport AsteroidMinable : public Pawn
    49     { // tolua_export
     47    class _OrxonoxExport AsteroidMinable : public Pawn{
    5048
    5149        public:
    5250            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.
    5452
    5553            virtual ~AsteroidMinable();
     
    6260            virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, const btCollisionShape* cs, float damage, float healthdamage = 0.0f, float shielddamage = 0.0f);
    6361
     62            inline void setSize(int s){this->size = s;}
     63            inline int getSize(){return this->size;}
    6464
    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;}
    7367
    7468
    7569        protected:
    76             // Da neue Argumente reinstellen
    77             //float asteroidVersion; // Bodenstrich-Konvention?,
    78             // Wert zwischen 1 und 6 (Spezialdinger?), die Mesh-Form
    79             float size;
    80             bool generateSmaller;
    81             bool initialised;
    8270
    8371            Context* context;
    8472
     73            int size;
     74            bool generateSmaller;
     75            bool dropStuff;
     76            bool initialised;
     77
    8578            virtual void death();
    86             virtual void putStuff();
    8779
    8880
     
    9183            void registerVariables();
    9284            virtual void spawnChildren();
     85            virtual void putStuff();
    9386
    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.
    9590            void printArrayString(int thingy[]);// Just for testing
    9691
Note: See TracChangeset for help on using the changeset viewer.