Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 8, 2014, 4:20:26 PM (10 years ago)
Author:
noep
Message:

Added PartDestructionEvent, possibly fixed one out of two runtimeerrors

File:
1 edited

Legend:

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

    r10023 r10052  
    3232#include "OrxonoxPrereqs.h"
    3333#include "Item.h"
     34#include "items/PartDestructionEvent.h"
    3435
    3536#include <string>
     
    5859            StaticEntity* getEntity(unsigned int index);
    5960            bool hasEntity(StaticEntity* entity) const;
     61
     62            void addDestructionEvent(PartDestructionEvent* event);
     63            PartDestructionEvent* getDestructionEvent(unsigned int index);
    6064
    6165            void printEntities(); // FIXME: (noep) remove debug
     
    102106        private:
    103107            std::vector<StaticEntity*> entityList_; // list of all entities which belong to this part
     108            std::vector<PartDestructionEvent*> eventList_;  // The list of all PartDestructionEvent assigned to this ShipPart.
     109
    104110
    105111    }; // tolua_export
Note: See TracChangeset for help on using the changeset viewer.