Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5853 was 5853, checked in by snellen, 18 years ago

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

File size: 1.0 KB
Line 
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"
11#include <list.h>
12
13class Weapon;
14class WeaponManager;
15
16//! Basic controllable WorldEntity
17/**
18 *  this is the debug player - actualy we would have to make a new
19     class derivated from Player for each player. for now, we just use
20     the player.cc for debug also
21 */
22class Playable : public WorldEntity
23{
24
25  public:
26    Playable();
27    virtual ~Playable();
28
29    void init();
30    void loadParams(const TiXmlElement* root);
31
32    virtual void addWeapon(Weapon* weapon )= 0;
33    virtual void removeWeapon(Weapon* weapon) = 0;
34
35    virtual void process(const Event &event) = 0;
36    virtual void setKeySet();
37    virtual void getKeySet();
38    WeaponManager* getWeaponManager();
39
40  private:
41
42    WeaponManager*        weaponMan;          //!< the weapon manager: managing a list of weapon to wepaon-slot mapping
43    std::list<Event*>      events;
44
45
46};
47
48#endif /* _PLAYABLE_H */
Note: See TracBrowser for help on using the repository browser.