35 #ifndef _PickupManager_H__ 36 #define _PickupManager_H__ 115 bool unregisterRepresentation(
const std::string& name);
120 static void pickupChangedUsedNetwork(uint32_t pickup,
bool inUse,
bool usable,
bool unusable);
127 int getNumPickups(
void);
134 {
return (this->pickupsIterator_++)->second; }
136 void dropPickup(uint32_t pickup);
137 void usePickup(uint32_t pickup,
bool use);
144 {
return this->pickups_.find(pickup) != this->pickups_.end(); }
147 static void dropPickupNetworked(uint32_t pickup);
148 static void usePickupNetworked(uint32_t pickup,
bool use);
166 void updateGUI(
void);
167 uint32_t getPickupIndex(
void);
173 #endif // _PickupManager_H__ std::map< uint32_t, WeakPtr< Pickupable > > pickups_
Map linking a number identifying a Pickupable to a weak pointer of a Pickupable.
Definition: PickupManager.h:163
const orxonox::PickupInventoryContainer * popPickup(void)
Get the next PickupInventoryContainer in the list.
Definition: PickupManager.h:133
bool guiLoaded_
Whether the PickupInventory GUI has been loaded, yet.
Definition: PickupManager.h:153
uint32_t pickup
An indentifier for the Pickupable that is associated with the information stored here.
Definition: PickupManager.h:61
#define _PickupExport
Definition: PickupPrereqs.h:60
Data structure to store collected data for one specific Pickupable.
Definition: PickupManager.h:59
PickupRepresentation * defaultRepresentation_
The default PickupRepresentation.
Definition: PickupManager.h:156
An Interface (or more precisely an abstract class) to model and represent different (all kinds of) pi...
Definition: Pickupable.h:60
uint32_t pickupHighestIndex_
The highest pickup index currently in use. (not taking wrap-around into account)
Definition: PickupManager.h:154
The MetaPickup uses all the PickupCarriers' Pickupables.
bool pickedUp
Whether the Pickupable is currently picked up.
Definition: PickupManager.h:63
::std::string string
Definition: gtest-port.h:756
static PickupManager & getInstance()
Get the instance of the PickupManager singleton.
Definition: PickupManager.h:112
Definition of WeakPtr<T>, wraps a pointer to an object.
bool usable
Whether the Pickupable is usable.
Definition: PickupManager.h:64
bool isValidPickup(uint32_t pickup) const
Check whether the input Pickupable is valid, meaning that it is in the PickupManager's list and still...
Definition: PickupManager.h:143
std::map< std::string, PickupRepresentation * > representations_
Map linking PickupRepresentations and their names.
Definition: PickupManager.h:158
Definition of the PickupListener class.
static PickupManager * singletonPtr_s
Definition: PickupManager.h:151
std::map< uint32_t, PickupInventoryContainer * > pickupInventoryContainers_
Map linking a number identifying a Pickupable to a PickupInventoryContainer, which contains all neces...
Definition: PickupManager.h:160
bool inUse
Whether the Pickupable is currently in use.
Definition: PickupManager.h:62
Base for singleton classes.
Definition: Singleton.h:114
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
std::map< uint32_t, PickupInventoryContainer * >::iterator pickupsIterator_
An iterator pointing to the current Pickupable in pickupsList_.
Definition: PickupManager.h:161
Definition of the PickupRepresentation class.
The PickupListener class facilitates the flow of information regarding the picking up...
Definition: PickupListener.h:57
The PickupRepresentation class represents a specific pickup type.
Definition: PickupRepresentation.h:91
std::map< Pickupable *, uint32_t > indexes_
Map linking Pickupable to the number identifying it.
Definition: PickupManager.h:164
static const std::string guiName_s
The name of the PickupInventory.
Definition: PickupManager.h:152
uint32_t carrierPawnId
The objectId of the Pawn that carries the Pickupable.
Definition: PickupManager.h:67
Definition of the Singleton template that is used as base class for classes that allow only one insta...
bool unusable
Whether the Pickupable is droppable.
Definition: PickupManager.h:65
std::string representationName
The name of the associated PickupRepresentation.
Definition: PickupManager.h:66
Shared library macros, enums, constants and forward declarations for the questsystem module ...
static T & getInstance()
Returns a reference to the singleton instance.
Definition: Singleton.h:118
The PickupManager class manages Pickupables.
Definition: PickupManager.h:99