Implement some more base types, including basic units. This should be much closer to final interface

This commit is contained in:
Marc Di Luzio 2014-12-16 13:12:54 +00:00
parent 51cdda821d
commit 64f9638352
9 changed files with 174 additions and 74 deletions

View file

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

View file

@ -5,8 +5,14 @@
struct vector2
{
square_t x;
square_t y;
coord_t x;
coord_t y;
};
struct uvector2
{
ucoord_t x;
ucoord_t y;
};
#endif //_VECTOR2_H_