build: Added GameObject base to tictactoe sample

* Gets used in gifs and video
This commit is contained in:
Eberhard Graether
2017-06-19 22:15:34 +02:00
parent e6c5ffa97a
commit 894beccb28
3 changed files with 15 additions and 2 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef _FIELD_
#define _FIELD_
class Field {
#include "game_object.h"
class Field : public GameObject {
public:
enum Token {
None = 0,
@@ -0,0 +1,10 @@
#ifndef _GAME_OBJECT_
#define _GAME_OBJECT_
class GameObject {
public:
GameObject() {}
virtual ~GameObject() {}
};
#endif // _GAME_OBJECT_
+2 -1
View File
@@ -2,8 +2,9 @@
#define _PLAYER_
#include "field.h"
#include "game_object.h"
class Player {
class Player : public GameObject {
public:
Player( Field::Token token, const char* name );
virtual ~Player();