Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5855 in orxonox.OLD for branches


Ignore:
Timestamp:
Dec 1, 2005, 5:57:39 PM (19 years ago)
Author:
bensch
Message:

const getEvent and also inline

Location:
branches/spaceshipcontrol/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/world_entities/playable.cc

    r5854 r5855  
    3333  return weaponMan;
    3434}
    35 
    36 std::list<Event*>* Playable::getEventList()
    37 {
    38   return events;
    39 }
  • branches/spaceshipcontrol/src/world_entities/playable.h

    r5854 r5855  
    3636    virtual void setKeySet();
    3737    virtual void getKeySet();
    38     std::list<Event*> getEventList();
     38    inline const std::list<Event*>& getEventList() { return this->events; };
    3939    WeaponManager* getWeaponManager();
    4040
     
    4242
    4343    WeaponManager*        weaponMan;          //!< the weapon manager: managing a list of weapon to wepaon-slot mapping
    44     std::list<Event*>*     events;
     44    std::list<Event*>     events;
    4545
    4646
Note: See TracChangeset for help on using the changeset viewer.