Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/playability/src/world_entities/player.h @ 9971

Last change on this file since 9971 was 9971, checked in by muellmic, 17 years ago

blub

File size: 1.4 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"
[9971]12#include "world_entities/space_ships/playership.h"
[6441]13
[5915]14/* Forward Declaration */
15class Playable;
[3471]16
[6441]17
[6985]18//! Basic playable WorldEntity
[4885]19/**
20  *  this is the debug player - actualy we would have to make a new
21     class derivated from Player for each player. for now, we just use
22     the player.cc for debug also
23*/
[5915]24class Player : public EventListener
[3471]25{
[9869]26  ObjectListDeclaration(Player);
[4780]27
[4818]28  public:
29    Player();
30    virtual ~Player();
[3583]31
[6985]32    bool              setPlayable(Playable* controllalble);
[7339]33    bool              eject();
[9971]34    void              setPlayerShip(PlayerShip playership);
35    PlayerShip*       getPlayerShip();
[6986]36    inline Playable*  getPlayable() const  { return this->playable; };
[4780]37
[9869]38
[9019]39     inline Hud& hud() { return this->_hud; };
40     inline const Hud& hud() const { return this->_hud; };
[9002]41
42
[6443]43    void              weaponConfigChanged();
[9061]44    void              enterNewPlayable();
[4780]45
[5915]46    // eventListener extension.
47    virtual void      process(const Event &event);
[3583]48
[4818]49  private:
[9002]50    Playable*         playable;                 //!< The one we controll or NULL if none
[9971]51    Hud               _hud;                     //!< The HUD to be displayed for this Player.
52    PlayerShip        playership;
[3471]53};
54
55#endif /* _PLAYER_H */
Note: See TracBrowser for help on using the repository browser.