Implement some more base types, including basic units. This should be much closer to final interface
This commit is contained in:
parent
51cdda821d
commit
64f9638352
9 changed files with 174 additions and 74 deletions
|
@ -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_
|
|
@ -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_
|
Loading…
Add table
Add a link
Reference in a new issue