Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/spaceshipcontrol/src/world_entities/player.h @ 5894

Last change on this file since 5894 was 5872, checked in by snellen, 19 years ago

player.cc and player.h updated ( in ../src/world_entities)

File size: 809 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
9#include "world_entity.h"
[4382]10#include "physics_interface.h"
[4404]11#include "event_listener.h"
[5839]12#include "playable.h"
[3471]13
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*/
[5839]21class Player : public EventListener
[3471]22{
[4780]23
[4818]24  public:
25    Player();
26    virtual ~Player();
[3583]27
[5840]28    void          init();
[4780]29
[5872]30
[5840]31    virtual void  process(const Event &event);
[4780]32
[5847]33    void          setControllable(Playable* controllalble);
[5872]34    void          disconnectControllable();
[5840]35    Playable*     getControllable();
[3471]36
[5840]37
[4818]38  private:
[5839]39    Playable* controllable;
[3755]40
[3583]41
[3471]42};
43
44#endif /* _PLAYER_H */
Note: See TracBrowser for help on using the repository browser.