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/PickupCollection.h

    r2972 r3001  
    106106            { this->owner_ = owner; }
    107107
     108        inline UsableItem* getCurrentUsable()
     109            { return this->currentUsable_; };
     110        inline void setCurrentUsable(UsableItem* usable)
     111            { this->currentUsable_ = usable; }
     112
    108113        std::deque<EquipmentItem*> getEquipmentItems();   //!< Get a list of equipment-type items.
    109114        std::deque<PassiveItem*> getPassiveItems();     //!< Get a list of passive items.
     
    111116    private:
    112117        Pawn* owner_;           //!< The owner of the PickupCollection.
     118        UsableItem* currentUsable_;
    113119
    114120        bool bBlockRemovals_;   //!< Whether to block direct removals through remove().
Note: See TracChangeset for help on using the changeset viewer.