Rename CBoardData, refactor a few things and add a maths library folder

This commit is contained in:
Marc Di Luzio 2014-12-16 13:12:53 +00:00
parent e8429ae4a2
commit 743c9a2859
11 changed files with 150 additions and 116 deletions

7
maths/basetypes.h Normal file
View file

@ -0,0 +1,7 @@
#ifndef _BASETYPES_H_
#define _BASETYPES_H_
// Type for the board square
typedef short square_t;
#endif //_BASETYPES_H_

12
maths/vector2.h Normal file
View file

@ -0,0 +1,12 @@
#ifndef _VECTOR2_H_
#define _VECTOR2_H_
#include "basetypes.h"
struct vector2
{
square_t x;
square_t y;
};
#endif //_VECTOR2_H_