summaryrefslogtreecommitdiff
path: root/server/gamevariant.h
blob: 6fb2c56cdb987357be05547e59a688b267891f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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