Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

palm/savegame.h File Reference

interface to the savegame code More...

#include <sections.h>

Go to the source code of this file.

Functions

Boolean hFiles (EventPtr event) SAVE_SECTION
 Handler for the list of cities dialog.

Boolean hFilesNew (EventPtr event) SAVE_SECTION
 Handler for the new file form.

int UILoadAutoGame (void) SAVE_SECTION
 Load the game form the auto-save slot.

void UISaveAutoGame (void) SAVE_SECTION
 Save the autosave game.

void UISaveMyCity (void) SAVE_SECTION
 save the city that is currently being used.

void UIClearAutoSaveSlot (void) SAVE_SECTION
 Delete the game stored in the auto-save slot.


Detailed Description

interface to the savegame code

exports the handlers and a couple of convenience functions

Definition in file savegame.h.


Function Documentation

Boolean hFiles EventPtr    event
 

Handler for the list of cities dialog.

Ensures that the list is populated with all the cities in the save game slots.

Definition at line 323 of file savegame.c.

References CleanSaveGameList(), DeleteFromList(), filesSetup(), formID_pocketCity, Int16, LoadFromList(), and UpdateSaveGameList().

Boolean hFilesNew EventPtr    event
 

Handler for the new file form.

Makes sure that the text field is given focus.

Definition at line 90 of file savegame.c.

References cityNewSetup(), cnCreateButtonPressed(), cnFieldContentChanged(), cnRepeatPressed(), and UInt16.

void UISaveAutoGame void   
 

Save the autosave game.

The autosave slot is simply the name of the current autosave city.

Definition at line 80 of file savegame.c.

References SetAutoSave(), and UISaveMyCity().

void UISaveMyCity void   
 

save the city that is currently being used.

Needs to find the city in the set of saved cities

Definition at line 71 of file savegame.c.

References SaveGameByName().

Referenced by UISaveAutoGame().


Generated on Mon Aug 30 19:44:17 2004 for pocketcity by doxygen1.2.18