102 {
return this->representationName_; }
109 {
return this->activationType_; }
115 {
return this->durationType_; }
117 const std::string& getActivationTypeAsString(
void)
const;
118 const std::string& getDurationTypeAsString(
void)
const;
145 virtual void changedPickedUp(
void)
override;
148 virtual bool createSpawner(
void)
override;
154 { this->representationName_ = name; }
161 { this->activationType_ = type; }
167 { this->durationType_ = type; }
169 void setActivationTypeAsString(
const std::string& type);
170 void setDurationTypeAsString(
const std::string& type);
173 void initialize(
void);
187 #endif // _Pickup_H__ The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
Means that the Pickup will be used over a continuous timespan.
Means that the Pickup will be used only once at a singular time instant.
static const std::string durationTypeOnce_s
Definition: Pickup.h:182
#define _PickupExport
Definition: PickupPrereqs.h:60
bool isOnUse(void) const
Get whether the activation type is 'onUse'.
Definition: Pickup.h:130
PickupActivationType activationType_
The activation type of the Pickup.
Definition: Pickup.h:176
static const std::string activationTypeOnUse_s
Definition: Pickup.h:181
::std::string string
Definition: gtest-port.h:756
void setRepresentationName(const std::string &name)
Sets the representation name which refers to the name of the PickupRepresentation that is used to rep...
Definition: Pickup.h:153
void setDurationType(PickupDurationType type)
Set the duration type of the Pickup.
Definition: Pickup.h:166
Declaration of the XMLPort helper classes and macros.
PickupDurationType durationType_
The duration type of the Pickup.
Definition: Pickup.h:177
Definition of the CollectiblePickup class.
Means that the Pickup will be used at a later point trough some external influence.
bool isImmediate(void) const
Get whether the activation type is 'immediate'.
Definition: Pickup.h:124
xmlelement
Definition: Super.h:519
static const std::string durationTypeContinuous_s
Definition: Pickup.h:183
Declaration of the Timer class, used to call functions after a given time-interval.
Means that the Pickup will be used immediately after pickup.
bool isContinuous(void) const
Get whether the duration type is 'continuous'.
Definition: Pickup.h:142
PickupDurationType getDurationType(void) const
Get the duration type of the Pickup.
Definition: Pickup.h:114
static const std::string activationTypeImmediate_s
Strings for the activation and duration types.
Definition: Pickup.h:180
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Declaration of BaseObject, the base class of all objects in Orxonox.
PickupActivationType getActivationType(void) const
Get the activation type of the Pickup.
Definition: Pickup.h:108
PickupDurationType
Enum for the Pickup duration type.
Definition: Pickup.h:67
void setActivationType(PickupActivationType type)
Set the activation type of the Pickup.
Definition: Pickup.h:160
std::string representationName_
The name of the associated PickupRepresentation.
Definition: Pickup.h:175
The CollectiblePickup class encompasses all Pickupables that can be added to a PickupCollection and t...
Definition: CollectiblePickup.h:55
bool isOnce(void) const
Get whether the duration type is 'once'.
Definition: Pickup.h:136
The Pickup class offers (useful) base functionality for a wide range of pickups.
Definition: Pickup.h:92
PickupActivationType
Enum for the Pickup activation type.
Definition: Pickup.h:55
Shared library macros, enums, constants and forward declarations for the questsystem module ...
virtual const std::string & getRepresentationName() const override
Returns the representation name which refers to the name of the PickupRepresentation that is used to ...
Definition: Pickup.h:101