Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: OggPlayer retrieves Information about the current Title
The Title Played is relayed to the Hud's Notifier

File size: 1.1 KB
RevLine 
[4780]1/*!
[4885]2 * @file player.h
[6985]3 * Implements a basic playable 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
[6985]17//! Basic playable 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
[6985]30    bool              setPlayable(Playable* controllalble);
[7339]31    bool              eject();
[6986]32    inline Playable*  getPlayable() const  { return this->playable; };
[4780]33
[9019]34     inline Hud& hud() { return this->_hud; };
35     inline const Hud& hud() const { return this->_hud; };
[9002]36
37
[6443]38    void              weaponConfigChanged();
[4780]39
[5915]40    // eventListener extension.
41    virtual void      process(const Event &event);
[3583]42
[4818]43  private:
[9002]44    Playable*         playable;                 //!< The one we controll or NULL if none
[9019]45    Hud               _hud;                      //!< The HUD to be displayed for this Player.
[3471]46};
47
48#endif /* _PLAYER_H */
Note: See TracBrowser for help on using the repository browser.