35 #ifndef _PickupRepresentation_H__ 36 #define _PickupRepresentation_H__ 117 {
return this->spawnerTemplate_; }
124 {
if(index == 0)
return this->spawnerRepresentation_;
return nullptr; }
131 virtual void changedName()
override;
141 { this->
name_ = name; }
147 { this->description_ = description; }
154 { this->spawnerTemplate_ = spawnerTemplate; }
160 void setSpawnerRepresentation(
StaticEntity* representation);
167 { this->inventoryRepresentation_ = image; }
170 void initialize(
void);
173 void registerVariables(
void);
185 #endif // _PickupRepresentation_H__ The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
#define _PickupExport
Definition: PickupPrereqs.h:60
const std::string & getInventoryRepresentation(void) const
Get the name of the image representing the pickup in the PickupInventory.
Definition: PickupRepresentation.h:129
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
This class is the base class of all the Objects in the universe that need to be synchronised over the...
Definition: Synchronisable.h:142
Definition of the PickupSpawner class.
::std::string string
Definition: gtest-port.h:756
const std::string & getPickupName(void) const
Get the name of the Pickupable represented by this PickupRepresentation.
Definition: PickupRepresentation.h:106
Declaration of the XMLPort helper classes and macros.
void setInventoryRepresentation(const std::string &image)
Set the image representing the pickup in the PickupInventory.
Definition: PickupRepresentation.h:166
const std::string & getPickupDescription(void) const
Get the description of the Pickupable represented by this PickupRepresentation.
Definition: PickupRepresentation.h:111
StaticEntity * spawnerRepresentation_
The spawnerRepresentation of this PickupRepresentation.
Definition: PickupRepresentation.h:178
xmlelement
Definition: Super.h:519
void setPickupDescription(const std::string &description)
Set the description of the Pickupable represented by this PickupRepresentation.
Definition: PickupRepresentation.h:146
std::string spawnerTemplate_
The name of the template of this PickupRepresentation.
Definition: PickupRepresentation.h:177
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
const std::string & getSpawnerTemplate(void) const
Get the name of spawnerTemplate the Pickupable represented by this PickupRepresentation.
Definition: PickupRepresentation.h:116
std::string inventoryRepresentation_
The name of an image representing the pickup in the PickupInventory.
Definition: PickupRepresentation.h:179
Declaration of BaseObject, the base class of all objects in Orxonox.
void setSpawnerTemplate(const std::string &spawnerTemplate)
Set the spawnerTemplate of the Pickupable represented by this PickupRepresentation.
Definition: PickupRepresentation.h:153
The PickupRepresentation class represents a specific pickup type.
Definition: PickupRepresentation.h:91
The PickupSpawner class is responsible for spawning @ref orxonox::Pickupable "Pickupables" of a speci...
Definition: PickupSpawner.h:76
void setPickupName(const std::string &name)
Set the name of the Pickupable represented by this PickupRepresentation.
Definition: PickupRepresentation.h:140
Shared library macros, enums, constants and forward declarations for the questsystem module ...
internal::String name_
Definition: gtest.cc:2289
std::string description_
The description of the Pickupable represented by this PickupRepresentation.
Definition: PickupRepresentation.h:176
const StaticEntity * getSpawnerRepresentationIndex(unsigned int index) const
Get the StaticEntity that defines how the PickupSpawner of the Pickupable represented by this PickupR...
Definition: PickupRepresentation.h:123
std::string name_
The name of the Pickupable represented by this PickupRepresentation.
Definition: PickupRepresentation.h:175
Definition of the Pickupable class.