Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: the Hud now scales the Widgets itself

File size: 1010 bytes
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
[6441]11#include "util/hud.h"
12
[5915]13/* Forward Declaration */
14class Playable;
[3471]15
[6441]16
[3471]17//! Basic controllable WorldEntity
[4885]18/**
19  *  this is the debug player - actualy we would have to make a new
20     class derivated from Player for each player. for now, we just use
21     the player.cc for debug also
22*/
[5915]23class Player : public EventListener
[3471]24{
[4780]25
[4818]26  public:
27    Player();
28    virtual ~Player();
[3583]29
[5915]30    bool              setControllable(Playable* controllalble);
31    inline Playable*  getControllable() { return this->controllable; };
[4780]32
[5915]33    bool              disconnectControllable();
[4780]34
[5915]35    // eventListener extension.
36    virtual void      process(const Event &event);
[3583]37
[4818]38  private:
[5915]39    Playable*         controllable;                  //!< The one we controll or NULL if none
[6441]40    Hud               hud;                           //!< The HUD to be displayed for this Player.
[3471]41};
42
43#endif /* _PLAYER_H */
Note: See TracBrowser for help on using the repository browser.