diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-18 17:58:45 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-18 17:58:45 +0000 |
commit | 35613f0860a2d8cb643ca8de006de08503e48e53 (patch) | |
tree | 8a5436de643e818e68a82df2e5cb2df2145f5062 /src/game/example/spectator.h | |
parent | db287e4a5133125bb6f25ba21ea97c47b19ac67f (diff) |
example module
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__ + |