Rename CBoardData, refactor a few things and add a maths library folder
This commit is contained in:
parent
e8429ae4a2
commit
743c9a2859
11 changed files with 150 additions and 116 deletions
7
maths/basetypes.h
Normal file
7
maths/basetypes.h
Normal 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
12
maths/vector2.h
Normal 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_
|
Loading…
Add table
Add a link
Reference in a new issue