build: Added GameObject base to tictactoe sample
* Gets used in gifs and video
This commit is contained in:
@@ -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,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();
|
||||
|
||||
Reference in New Issue
Block a user