diff options
Diffstat (limited to 'src/game/example/spectator.h')
-rw-r--r-- | src/game/example/spectator.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/game/example/spectator.h b/src/game/example/spectator.h new file mode 100644 index 0000000..435c45c --- /dev/null +++ b/src/game/example/spectator.h @@ -0,0 +1,32 @@ +/* + base/spectator.h + This file is part of the Osirion project and is distributed under + the terms and conditions of the GNU General Public License version 2 +*/ + +#ifndef __INCLUDED_EXAMPLE_SPECTATOR_H__ +#define __INCLUDED_EXAMPLE_SPECTATOR_H__ + +#include "core/entity.h" +#include "core/cvar.h" + +namespace example { + +/// A spectator entity +class Spectator : public core::EntityControlable +{ +public: + Spectator(core::Player *owner); + ~Spectator(); + + /// update the ship state + virtual void frame(float elapsed); + + static core::Cvar *g_spectatorspeed; + static core::Cvar *g_spectatorrotation; +}; + +} + +#endif // __INCLUDED_EXAMPLE_SPECTATOR_H__ + |