Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 20, 2009, 9:01:17 PM (16 years ago)
Author:
danielh
Message:
  • Added helper method to HumanController to get it's ControllableEntity as a Pawn
  • Removed tooltip, added default (empty) values for text and image from BaseItem
  • Fixed tolua in BaseItem.h
  • Added object to PickupCollection for the current UsableItem
  • Moved most inventory logic from Lua to PickupInventory (still slow)

TODO

  • Re-use of CEGUI item windows, destroying and creating them on each update is slow, very slow
File:
1 edited

Legend:

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

    r2972 r3001  
    5050            Daniel 'Huty' Haggenmueller
    5151    */
    52     class _OrxonoxExport BaseItem : public BaseObject
     52    class _OrxonoxExport BaseItem
     53// tolua_end
     54        : public BaseObject
     55// tolua_begin
    5356    {
    5457// tolua_end
     
    122125
    123126        // GUI stuff
    124         virtual const std::string& getGUIText()
    125             { return this->guiText_; }
     127        virtual const std::string& getGUIText() const; // tolua_export
    126128        inline void setGUIText(const std::string& text)
    127129            { this->guiText_ = text; }
    128130
    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()
     131        virtual const std::string& getGUIImage() const
    135132            { return this->guiImage_; }
    136133        inline void setGUIImage(const std::string& image)
     
    149146
    150147        std::string guiText_;
    151         std::string guiTooltip_;
    152148        std::string guiImage_;
    153     };
    154 }
     149    }; // tolua_export
     150} // tolua_export
    155151
    156152#endif /* _BaseItem_H__ */
Note: See TracChangeset for help on using the changeset viewer.