blob: c4b44f228d4610d90a533ddd14650003b7367001 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifndef _TYPES_H
#define _TYPES_H
#include <iostream>
#ifdef _MSC_VER
typedef unsigned int uint32 ;
typedef int int32 ;
typedef unsigned char uint8 ;
typedef unsigned long int uint64 ;
#define __func__ __FUNCTION__
#else
// couldn't he have used _t like everyone else?
#include <stdint.h>
typedef uint32_t uint32 ;
typedef int32_t int32 ;
typedef uint8_t uint8 ;
typedef uint64_t uint64 ;
#endif
#define TRACELINE() std::cout << __func__ << " : " << __LINE__ << std::endl
// Default types
typedef uint32 uint;
// our types
struct VelocityVector
{
int x;
int y;
VelocityVector(int _x = 0, int _y = 0): x(_x), y(_y) {};
};
typedef uint PlayerColor;
typedef char PlayerNumber;
#endif // _TYPES_H
|