Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

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

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