Changeset 2227 for code/branches/pickups2/src/orxonox/objects/pickup/Item.h
- Timestamp:
- Nov 19, 2008, 4:06:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2/src/orxonox/objects/pickup/Item.h
r2202 r2227 1 #ifndef _Item_H__ 2 #define _Item_H__ 3 4 #include "core/BaseObject.h" 5 #include "OrxonoxPrereqs.h" 6 1 7 namespace orxonox 2 8 { 3 class _OrxonoxExport Item 9 class _OrxonoxExport Item : public BaseObject 4 10 { 5 11 public: 6 virtual bool pickedUp(Pawn* player); 7 virtual bool dropped(Pawn* player); //erst bei festen Items 12 Item( BaseObject* creator); 13 virtual ~Item(); 14 15 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 16 17 virtual bool pickedUp(Pawn* player) { return true; } 18 virtual bool dropped(Pawn* player) { return true; } //erst bei festen Items 8 19 void addTo(Pawn* player); 9 void removeFrom(Pawn* player); 10 string getPlayerBaseClass(); 11 Item( BaseObject* creator); 12 ~Item(); 20 21 inline void setPlayerBaseClass(Identifier* identifier) 22 { this->playerBaseClass_ = identifier; } 23 inline Identifier* getPlayerBaseClass() const 24 { return this->playerBaseClass_; } 13 25 14 26 private: 15 Identifier* PlayerBaseClass; //class(...) 16 17 18 } 27 void setPlayerBaseClassName(const std::string& name); 28 const std::string& getPlayerBaseClassName() const; 29 30 Identifier* playerBaseClass_; //class(...) 31 }; 19 32 } 20 33 34 #endif /* _Item_H__ */
Note: See TracChangeset
for help on using the changeset viewer.