src/Types.hh
author terom
Tue, 09 Dec 2008 02:00:19 +0000
changeset 344 a1ac08c37f0f
parent 311 440763821484
child 370 39e59dd36b6e
permissions -rw-r--r--
reorganize section 1 of documentation, and write a lot of really hard-to-read text in section 2
#ifndef TYPES_HH
#define TYPES_HH

/**
 * Define various types
 */

#include "Vector.hh"

#include <stdint.h>

/* 
 * Standard vector used for Physics stuff
 */
typedef _Vector<float> Vector;

/**
 * A player's health is measured in...
 */
typedef int16_t Health;

/**
 * Terrain/Graphics pixel dimension values are long ints
 */
typedef long int PixelDimension;

/**
 * A Terrain/Pixel coordinate as a PixelDimension Vector
 */
typedef _Vector<PixelDimension> PixelCoordinate;

/**
 * A time interval, measured in real milliseconds
 */
typedef signed long TimeMS;

/**
 * Abstract tick count, defined as a number of Timer::interval's against real time
 */
typedef int32_t TickCount;

#endif