Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/spaceshipcontrol/src/world_entities/player.h @ 5899

Last change on this file since 5899 was 5899, checked in by bensch, 18 years ago

controll: better player

File size: 929 bytes
Line 
1/*!
2 * @file player.h
3 * Implements a basic controllable WorldEntity
4 */
5
6#ifndef _PLAYER_H
7#define _PLAYER_H
8
9#include "event_listener.h"
10
11/* Forward Declaration */
12class Playable;
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 Player : public EventListener
21{
22
23  public:
24    Player();
25    virtual ~Player();
26
27    bool              setControllable(Playable* controllalble);
28    void              disconnectControllable();
29    inline Playable*  getControllable() { return this->controllable; };
30
31    // eventListener extension.
32    virtual void      process(const Event &event);
33
34  private:
35    void              init();
36
37
38  private:
39    Playable*         controllable;                  //!< The one we controll or NULL if none
40};
41
42#endif /* _PLAYER_H */
Note: See TracBrowser for help on using the repository browser.