Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/spaceshipcontrol/src/world_entities/playable.h @ 5870

Last change on this file since 5870 was 5864, checked in by snellen, 19 years ago

player.cc and player.h updated ( in ../src/world_entities)

File size: 959 bytes
RevLine 
[5838]1
2/*!
3 * @file playable.h
4 * Interface for a basic controllable WorldEntity
5 */
6#ifndef _PLAYABLE_H
7#define _PLAYABLE_H
8
9#include "world_entity.h"
10#include "event.h"
[5853]11#include <list.h>
[5838]12
[5847]13class Weapon;
[5838]14class WeaponManager;
15
16//! Basic controllable WorldEntity
17/**
[5864]18 *
[5838]19 */
20class Playable : public WorldEntity
21{
22
23  public:
24    Playable();
25    virtual ~Playable();
26
27    void init();
28    void loadParams(const TiXmlElement* root);
29
[5847]30    virtual void addWeapon(Weapon* weapon )= 0;
31    virtual void removeWeapon(Weapon* weapon) = 0;
[5838]32
[5847]33    virtual void process(const Event &event) = 0;
[5853]34    virtual void setKeySet();
[5855]35    inline const std::list<Event*>& getEventList() { return this->events; };
[5838]36    WeaponManager* getWeaponManager();
37
38  private:
39
40    WeaponManager*        weaponMan;          //!< the weapon manager: managing a list of weapon to wepaon-slot mapping
[5855]41    std::list<Event*>     events;
[5864]42    //todo: add a event to id mapping list
[5838]43
[5853]44
[5838]45};
46
47#endif /* _PLAYABLE_H */
Note: See TracBrowser for help on using the repository browser.