Open Ski Jumping

Copyright (c) 2004 Michal Brzozowski

----------------------------------------------------

This file describes the data files used by the game.

1.  Hill list
name: 	hills.txt
description: 
	Names of the hills' files, separated by white space.  
	Names cannot include white space.  Order same as in the menu, and in hillrec.txt

2.  Hill records
name:	hillrec.txt
description: 
	Contains as many real numbers, and names separated by one space (each record in a 
	seperate line), as many there are hills in hills.txt.  Order must also be the same.

3.  Hills

name: 	*.in
description:    
	first line:  	<hill name (must be one word)>, <point K (positive integer)>
	second line: 	<n, number of points that belong to the inrun (positive integer, likely 3)>,
	     	<m, number of points belonging to the hill (positive integer, likely 5)>
	next n lines, each describing one point of the inrun:
		<X-coordinate>, 
		<Y-coonrdinate> (distances from the far upper-left corner), 
		<unknown value (might be used sometime)>  (all are integers)
	next m lines, each describing one point of the hill: same as above.
	
note:	inrun and hill surfaces are polynomials of degree n+1 and m+1.  They are constructed from 
	the input data using Lagrange's formula.

4.  Cups

name:	*.cup
description:
	first line:	<cup name>
	next lines:	any number of competition descriptions separated by a '-----' (not my idea ;))
	each description consists of a line describing the hill "file=foobar.in", and a line
	describing the system "system=[standard,ko]" (not supported yet)

5.  Jumpers

name:	competitors.txt
description:
	contains a number of jumper's descriptions
	each description constains three definitions (for example):
		name = Foo Bar
		color = 123
		control = [human,ai0,ai1,ai2] (human or AI player.  "ai0" is the weakest and "ai2" is the
		strongest jumper.

6.  Cameras

name:  cameras.txt
description:
	contains a number of camera's descriptions separated by a blank line
	each description constains a name of the camera, its type and position, for example:
		eye view 
		FPP
		90 30
	in the above case, the camera is placed in the jumpers head ;), and rotated 90 degrees left and 30
	degrees down.

7.  Replays
name:	as the user chooses
description:
	first line:	<hill file name, for which replay was recorded>
	second line:	<n, single positive integer>
	next n lines, each describing one frame of the replay:
			<one positive 64-bit number>
			it stores this structure:
				struct frame {
			        	char key_up;
				        char key_down;
					char key_left;
					char key_right;
					signed char wind;
				};

