Main Page   Compound List   File List   Compound Members   File Members  

game.cpp File Reference

#include "host.h"
#include "random.h"

Compounds

class  Cgame

Functions

void game_set_pause (int value)
int game_get_pause (void)
void game_new (int new_screen_width, int new_screen_height, int random_number_seed)
void game_delete (void)
int game_advance (unsigned long int keys, long int joystickX, long int joystickY)

Variables

Cgamethe_game

Detailed Description

This is the game portion of the example. Game specific code to take the input, update the world, and draw is in here.

Code that depends on the host operating system, like PalmOS, does not belong here. Instead all such functionality is obtained through the host (HostPalm.c).

At the same time, because this code is free of the OS it simpler to read and easier to compile.

This file is in C++ to show how to interact with HostPalm.c


Variable Documentation

const int water_shallow = 0
 

Map terrain types.

These terrain types all have matching bitmaps for display.


Generated on Thu Feb 27 13:15:52 2003 for CompatibleGame by doxygen1.3-rc3