Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/player.h @ 6438

Last change on this file since 6438 was 6438, checked in by bensch, 19 years ago

trunk: widget war

File size: 1.0 KB
RevLine 
[4780]1/*!
[4885]2 * @file player.h
3 * Implements a basic controllable WorldEntity
[4818]4 */
[3471]5
6#ifndef _PLAYER_H
7#define _PLAYER_H
8
[4404]9#include "event_listener.h"
[3471]10
[5915]11/* Forward Declaration */
12class Playable;
[6438]13class Hud;
[3471]14
15//! Basic controllable WorldEntity
[4885]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*/
[5915]21class Player : public EventListener
[3471]22{
[4780]23
[4818]24  public:
25    Player();
26    virtual ~Player();
[3583]27
[5915]28    bool              setControllable(Playable* controllalble);
29    inline Playable*  getControllable() { return this->controllable; };
[4780]30
[5915]31    bool              disconnectControllable();
[4780]32
[5915]33    // eventListener extension.
34    virtual void      process(const Event &event);
[3583]35
[4818]36  private:
[5915]37    void              init();
[3755]38
[3583]39
[4818]40  private:
[5915]41    Playable*         controllable;                  //!< The one we controll or NULL if none
[6438]42    Hud*              hud;                           //!< The HUD to be displayed.
[3471]43};
44
45#endif /* _PLAYER_H */
Note: See TracBrowser for help on using the repository browser.