Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

playable.cc, playable.h, space_ship.cc and space_ship.h added in /src/world_entities/ and /src/world_entities/space_ships WARNING: DOESNT COMPILE

File size: 884 bytes
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
12class WeaponManager;
13
14//! Basic controllable WorldEntity
15/**
16 *  this is the debug player - actualy we would have to make a new
17     class derivated from Player for each player. for now, we just use
18     the player.cc for debug also
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
30    void addWeapon(Weapon* weapon);
31    void removeWeapon(Weapon* weapon);
32
33    virtual void process(const Event &event);
34
35    WeaponManager* getWeaponManager();
36
37  private:
38
39    WeaponManager*        weaponMan;          //!< the weapon manager: managing a list of weapon to wepaon-slot mapping
40
41};
42
43#endif /* _PLAYABLE_H */
Note: See TracBrowser for help on using the repository browser.