Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2014, 10:38:09 PM (11 years ago)
Author:
noep
Message:

Added explosions. (Because who doesn't love explosions.) Added printing health-status of shipparts to chat. Removed more debug-output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/modularships/src/orxonox/items/ShipPart.h

    r10058 r10067  
    5252
    5353            virtual void death();
     54            virtual void explode();
    5455
    5556            //virtual void attachTo(Pawn* newParent);
     
    6263            void addDestructionEvent(PartDestructionEvent* event);
    6364            PartDestructionEvent* getDestructionEvent(unsigned int index);
    64 
    65             void printEntities(); // FIXME: (noep) remove debug
    6665
    6766            virtual void setDamageAbsorption(float value);
     
    101100                { return this->initialHealth_; }
    102101
     102            inline void setExplosionPosition(Vector3 pos)
     103                { this->explosionPosition_ = pos; }
     104            inline Vector3 getExplosionPosition()
     105                { return this->explosionPosition_; }
     106
    103107
    104108            // FIXME: (noep) Why doesn't this work? Works fine in Engine.h
     
    121125            bool eventExecution_;
    122126
     127            Vector3 explosionPosition_;
     128
    123129
    124130    }; // tolua_export
Note: See TracChangeset for help on using the changeset viewer.