Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 14, 2014, 8:25:08 PM (11 years ago)
Author:
noep
Message:

Cleaned up code. Added console command "ModularSpaceShip killshippart [string]" which allows manual destruction of a ShipPart by name. Added more functionality to PartDestructionEvents.

File:
1 edited

Legend:

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

    r10054 r10055  
    113113            virtual void damage(float damage, float healthdamage = 0.0f, float shielddamage = 0.0f, Pawn* originator = NULL, const btCollisionShape* cs = NULL);
    114114
     115            static void killShipPart(std::string name);
     116
    115117            void addShipPart(ShipPart* part);
    116118            ShipPart* getShipPart(unsigned int index);
     
    127129        private:
    128130            void registerVariables();
    129             std::vector<ShipPart*> partList_;  // The list of all Parts mounted on this ModularSpaceShip.
    130             std::vector<SmartPtr<StaticEntity>*> entityPtrList_;
    131             std::vector<SmartPtr<CollisionShape>*> csPtrList_;
    132             std::map<StaticEntity*, ShipPart*> partMap_;
     131            std::vector<ShipPart*> partList_;                       // The list of all Parts mounted on this ModularSpaceShip.
     132            std::map<StaticEntity*, ShipPart*> partMap_;            // Map of Part-Entity-assignments
     133            static std::map<StaticEntity*, ShipPart*>* partMap_s;
    133134       
    134135    };
Note: See TracChangeset for help on using the changeset viewer.