Copyright ã 1996 by -destination All Rights Reserved.  

NCommon

Resource Collection
Declared In:	NCommon.h

Defined Types

SYNOPSIS
Direction_t	typedef enum
	{	
		INVALID_DIR = -1,
		EAST = 0,
		NORTH,
		WEST,
		SOUTH
	} Direction_t;
Rotation_t	typedef enum
	{	
		INVALID_ROT = -1,
		CLOCKWISE = 0,
		COUNTERCLOCKWISE
	} Rotation_t;
GameStatus_t	typedef enum
	{	
		STARTED = 0,
		PAUSED,
		STOPPED,
		FASTFORWARD
	} GameStatus_t;
NPipe_t	typedef enum
	{	
		PIPE_OBSTACLE = 0,
		PIPE_UNASSIGNED,
		PIPE_SOURCE,
		PIPE_VERTICAL_BIDIRECTIONAL,
		PIPE_HORIZONTAL_BIDIRECTIONAL,
		PIPE_UPPER_LEFT,
		PIPE_UPPER_RIGHT,
		PIPE_LOWER_LEFT,
		PIPE_LOWER_RIGHT,
		PIPE_INTERSECTION,
		PIPE_VERTICAL_ONEWAY_UP,
		PIPE_VERTICAL_ONEWAY_DOWN,
		PIPE_HORIZONTAL_ONEWAY_LEFT,
		PIPE_HORIZONTAL_ONEWAY_RIGHT
	} NPipe_t;

Symbolic Constants

SYNOPSIS
UNUSED_PIECE_PENALTY_POINTS	10
BIDIRECTIONAL_PIECE_POINTS	20
UNIDIRECTIONAL_PIECE_POINTS	30
INTERSECTION_BONUS_POINTS	40
MINIMUM_PIPE_SET	( PIPE_INTERSECTION - PIPE_VERTICAL_BIDIRECTIONAL + 1 )
MAXIMUM_PIPE_SET	( PIPE_HORIZONTAL_ONEWAY_RIGHT - PIPE_VERTICAL_BIDIRECTIONAL + 1 )
STRING_LENGTH	255

Functions

SYNOPSIS
Rotation_t direction2rotation(NPipe_t pipe, Direction_t entry)	
Direction_t entry2exit(NPipe_t pipe, Direction_t entry)	
Direction_t exit2entry(Direction_t entry)