From 62a05732e05a25f40fbb409e49ff30e3fc8bd28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atle=20Hellvik=20Havs=C3=B8?= Date: Mon, 22 Nov 2010 20:08:56 +0100 Subject: Moved lots of code in Game out into a separate class. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Atle Hellvik Havsø --- server/gamevariant.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 server/gamevariant.h (limited to 'server/gamevariant.h') diff --git a/server/gamevariant.h b/server/gamevariant.h new file mode 100644 index 0000000..6fb2c56 --- /dev/null +++ b/server/gamevariant.h @@ -0,0 +1,20 @@ +#ifndef GAMEVARIANT_H +#define GAMEVARIANT_H + +#include "../common/state.h" +#include "../common/action.h" + +class GameVariant { + private: + State game_state; + + public: + virtual ~GameVariant(){}; + + virtual void round_start() = 0; + virtual State& round_update() = 0; + virtual bool round_action(Action action) = 0; +}; + +#endif // GAMEVARIANT_H + -- cgit v1.2.3