Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 3, 2014, 3:45:50 PM (10 years ago)
Author:
noep
Message:

Continued working on ShipPart and ModularSpaceShip implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/modularships/src/orxonox/worldentities/pawns/ModularSpaceShip.h

    r10011 r10019  
    4040
    4141#include "SpaceShip.h"
    42 #include "ShipPart.h"
     42#include "items/ShipPart.h"
     43#include <map>
    4344
    4445namespace orxonox
     
    9495            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    9596
     97            void attach(WorldEntity* object);
     98
     99            void addPartEntityAssignment(StaticEntity* entity, ShipPart* part);
     100            ShipPart* getPartOfEntity(StaticEntity* entity) const;
     101
    96102            virtual void damage(float damage, float healthdamage = 0.0f, float shielddamage = 0.0f, Pawn* originator = NULL, const btCollisionShape* cs = NULL);
    97103
     
    108114            void registerVariables();
    109115            std::vector<ShipPart*> partList_;  // The list of all Parts mounted on this ModularSpaceShip.
     116            std::map<StaticEntity*, ShipPart*> partMap_;
    110117       
    111118    };
Note: See TracChangeset for help on using the changeset viewer.