Changeset 10817 for code/branches/cpp11_v2/src/modules/pickup
- Timestamp:
- Nov 19, 2015, 11:40:28 AM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/pickup
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/pickup/CollectiblePickup.h
r10765 r10817 61 61 virtual ~CollectiblePickup(); //! Destructor. 62 62 63 virtual void changedUsed(void) ; //!< Is called when the pickup has transited from used to unused or the other way around.64 virtual void changedPickedUp(void) ; //!< Is called when the pickup has transited from picked up to dropped or the other way around.63 virtual void changedUsed(void) override; //!< Is called when the pickup has transited from used to unused or the other way around. 64 virtual void changedPickedUp(void) override; //!< Is called when the pickup has transited from picked up to dropped or the other way around. 65 65 66 66 /** -
code/branches/cpp11_v2/src/modules/pickup/Pickup.h
r9667 r10817 103 103 virtual ~Pickup(); //!< Destructor. 104 104 105 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;105 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 106 106 107 virtual const std::string& getRepresentationName() const 107 virtual const std::string& getRepresentationName() const override 108 108 { return this->representationName_; } 109 109 … … 149 149 { return this->getDurationType() == pickupDurationType::continuous; } 150 150 151 virtual void changedPickedUp(void) ; //!< Should be called when the pickup has transited from picked up to dropped or the other way around.151 virtual void changedPickedUp(void) override; //!< Should be called when the pickup has transited from picked up to dropped or the other way around. 152 152 153 153 protected: 154 virtual bool createSpawner(void) ; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.154 virtual bool createSpawner(void) override; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable. 155 155 156 156 /** -
code/branches/cpp11_v2/src/modules/pickup/PickupCollection.h
r9667 r10817 73 73 virtual ~PickupCollection(); //!< Destructor. 74 74 75 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Creates an instance of this Class through XML.75 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Creates an instance of this Class through XML. 76 76 77 virtual void changedUsed(void) ; //!< Is called when the pickup has transited from used to unused or the other way around.78 virtual void changedCarrier(void) ; //!< Is called when the pickup has changed its PickupCarrier.79 virtual void changedPickedUp(void) ; //!< Is called when the pickup has transited from picked up to dropped or the other way around.77 virtual void changedUsed(void) override; //!< Is called when the pickup has transited from used to unused or the other way around. 78 virtual void changedCarrier(void) override; //!< Is called when the pickup has changed its PickupCarrier. 79 virtual void changedPickedUp(void) override; //!< Is called when the pickup has transited from picked up to dropped or the other way around. 80 80 81 virtual bool isTarget(const PickupCarrier* carrier) const ; //!< Get whether a given class, represented by the input Identifier, is a target of this PickupCollection.81 virtual bool isTarget(const PickupCarrier* carrier) const override; //!< Get whether a given class, represented by the input Identifier, is a target of this PickupCollection. 82 82 83 83 inline void setRepresentationName(const std::string& name) 84 84 { this->representationName_ = name; } 85 virtual const std::string& getRepresentationName() const 85 virtual const std::string& getRepresentationName() const override 86 86 { return this->representationName_; } 87 87 … … 98 98 99 99 protected: 100 virtual bool createSpawner(void) ; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.100 virtual bool createSpawner(void) override; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable. 101 101 102 102 private: -
code/branches/cpp11_v2/src/modules/pickup/PickupManager.h
r10769 r10817 117 117 PickupRepresentation* getRepresentation(const std::string& name); // tolua_export 118 118 119 virtual void pickupChangedUsed(Pickupable* pickup, bool used) ; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input used state.119 virtual void pickupChangedUsed(Pickupable* pickup, bool used) override; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input used state. 120 120 static void pickupChangedUsedNetwork(uint32_t pickup, bool inUse, bool usable, bool unusable); //!< Helper method to react to the change in the used status of a Pickupable. 121 virtual void pickupChangedPickedUp(Pickupable* pickup, bool pickedUp) ; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input pickedUp state.121 virtual void pickupChangedPickedUp(Pickupable* pickup, bool pickedUp) override; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input pickedUp state. 122 122 static void pickupChangedPickedUpNetwork(uint32_t pickup, bool usable, uint32_t representationObjectId, const std::string& representationName, bool pickedUp); //!< Helper method to react to the change in the pickedUp status of a Pickupable. 123 123 -
code/branches/cpp11_v2/src/modules/pickup/PickupRepresentation.h
r10765 r10817 98 98 virtual ~PickupRepresentation(); //!< Destructor. 99 99 100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a PickupRepresentation object through XML.100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a PickupRepresentation object through XML. 101 101 102 102 /** … … 129 129 inline const std::string& getInventoryRepresentation(void) const { return this->inventoryRepresentation_; } // tolua_export 130 130 131 virtual void changedName() ;131 virtual void changedName() override; 132 132 133 133 StaticEntity* createSpawnerRepresentation(PickupSpawner* spawner); //!< Create a spawnerRepresentation for a specific PickupSpawner. -
code/branches/cpp11_v2/src/modules/pickup/PickupSpawner.h
r9667 r10817 82 82 static PickupSpawner* createDroppedPickup(Context* context, Pickupable* pickup, PickupCarrier* carrier, float triggerDistance = 10.0); 83 83 84 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a PickupSpawner through XML.85 virtual void tick(float dt) ; //!< Tick, checks if any Pawn is close enough to trigger.84 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a PickupSpawner through XML. 85 virtual void tick(float dt) override; //!< Tick, checks if any Pawn is close enough to trigger. 86 86 87 87 /**
Note: See TracChangeset
for help on using the changeset viewer.