Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2008, 4:06:51 PM (17 years ago)
Author:
dsommer
Message:

Turbo funktioniert

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
    17namespace orxonox
    28{
    3         class _OrxonoxExport Item
     9        class _OrxonoxExport Item : public BaseObject
    410        {
    511        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
    819        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_; }
    1325       
    1426        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        };
    1932}
    2033       
     34#endif /* _Item_H__ */
Note: See TracChangeset for help on using the changeset viewer.