Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2009, 6:03:40 PM (15 years ago)
Author:
danielh
Message:

Update

  • Minor changes in BaseItem
  • Updated to NotificationQueue from trunk (compile error with old)
  • Added PickupInventory for GUI handling
  • Added basic support for toLua++ methods
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickups2/src/orxonox/objects/pickup/BaseItem.h

    r2917 r2972  
    3939#include "core/BaseObject.h"
    4040
     41// tolua_begin
    4142namespace orxonox
    4243{
     
    5152    class _OrxonoxExport BaseItem : public BaseObject
    5253    {
     54// tolua_end
    5355    public:
    5456        BaseItem(BaseObject* creator);
    5557        virtual ~BaseItem();
     58
     59        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);  //!< XMLPort
    5660
    5761        /**
     
    116120        inline void setPickupIdentifier(const std::string& identifier)
    117121            { this->pickupIdentifier_ = identifier; }
     122
     123        // GUI stuff
     124        virtual const std::string& getGUIText()
     125            { return this->guiText_; }
     126        inline void setGUIText(const std::string& text)
     127            { this->guiText_ = text; }
     128
     129        virtual const std::string& getGUITooltip()
     130            { return this->guiTooltip_; }
     131        inline void setGUITooltip(const std::string& tooltip)
     132            { this->guiTooltip_ = tooltip; }
     133
     134        virtual const std::string& getGUIImage()
     135            { return this->guiImage_; }
     136        inline void setGUIImage(const std::string& image)
     137            { this->guiImage_ = image; }
    118138    private:
    119139        Pawn* owner_;   //!< The current owner of the item.
     
    127147        */
    128148        std::string pickupIdentifier_;
     149
     150        std::string guiText_;
     151        std::string guiTooltip_;
     152        std::string guiImage_;
    129153    };
    130154}
Note: See TracChangeset for help on using the changeset viewer.