Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/powerups/src/world_entities/player.h @ 5962

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

branches/powerups: merged the trunk to branches/powerup
merged with commandsvn merge ../trunk/ powerups/ -r5848:HEAD
conflicts resolved in favor of the trunk

File size: 930 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
[5955]11/* Forward Declaration */
12class Playable;
[3471]13
14//! Basic controllable WorldEntity
[4885]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*/
[5955]20class Player : public EventListener
[3471]21{
[4780]22
[4818]23  public:
24    Player();
25    virtual ~Player();
[3583]26
[5955]27    bool              setControllable(Playable* controllalble);
28    inline Playable*  getControllable() { return this->controllable; };
[4780]29
[5955]30    bool              disconnectControllable();
[4780]31
[5955]32    // eventListener extension.
33    virtual void      process(const Event &event);
[3583]34
[4818]35  private:
[5955]36    void              init();
[3755]37
[3583]38
[4818]39  private:
[5955]40    Playable*         controllable;                  //!< The one we controll or NULL if none
[3471]41};
42
43#endif /* _PLAYER_H */
Note: See TracBrowser for help on using the repository browser.