author | terom |
Mon, 15 Dec 2008 14:24:38 +0000 | |
changeset 370 | 39e59dd36b6e |
parent 311 | 440763821484 |
child 393 | 5dd4d782cf3a |
permissions | -rw-r--r-- |
296
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
1 |
#ifndef TYPES_HH |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
2 |
#define TYPES_HH |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
3 |
|
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
4 |
/** |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
5 |
* Define various types |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
6 |
*/ |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
7 |
|
300 | 8 |
#include "Vector.hh" |
9 |
||
296
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
10 |
#include <stdint.h> |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
11 |
|
300 | 12 |
/* |
13 |
* Standard vector used for Physics stuff |
|
14 |
*/ |
|
370
39e59dd36b6e
clean up Vector a bit, remove unused Terrain -> direction function
terom
parents:
311
diff
changeset
|
15 |
typedef VectorType<float> Vector; |
300 | 16 |
|
296
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
17 |
/** |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
18 |
* A player's health is measured in... |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
19 |
*/ |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
20 |
typedef int16_t Health; |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
21 |
|
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
22 |
/** |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
23 |
* Terrain/Graphics pixel dimension values are long ints |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
24 |
*/ |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
25 |
typedef long int PixelDimension; |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
26 |
|
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
27 |
/** |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
28 |
* A Terrain/Pixel coordinate as a PixelDimension Vector |
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
29 |
*/ |
370
39e59dd36b6e
clean up Vector a bit, remove unused Terrain -> direction function
terom
parents:
311
diff
changeset
|
30 |
typedef VectorType<PixelDimension> PixelCoordinate; |
296
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
31 |
|
300 | 32 |
/** |
33 |
* A time interval, measured in real milliseconds |
|
34 |
*/ |
|
311
440763821484
make Input have its own timer, and add key-repeat handling, and fix some warnings
terom
parents:
300
diff
changeset
|
35 |
typedef signed long TimeMS; |
300 | 36 |
|
37 |
/** |
|
38 |
* Abstract tick count, defined as a number of Timer::interval's against real time |
|
39 |
*/ |
|
311
440763821484
make Input have its own timer, and add key-repeat handling, and fix some warnings
terom
parents:
300
diff
changeset
|
40 |
typedef int32_t TickCount; |
296
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
41 |
|
4d3ebaa29430
add separate Types.hh, and fix projectile-worm collisions on network
terom
parents:
diff
changeset
|
42 |
#endif |