diff options
| author | icculus <icculus@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-02 21:06:00 +0000 |
|---|---|---|
| committer | icculus <icculus@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-02 21:06:00 +0000 |
| commit | e17acec1c9bec3a26d97ca2873bb77bdcb48665e (patch) | |
| tree | 26b14b6cedcb70df651c23dddbf0981970d0bd4d /Source/Files.h | |
| parent | 59ca62d601e30b5467f8ecd2cb7d517bc682fc12 (diff) | |
| download | blackshades-e17acec1c9bec3a26d97ca2873bb77bdcb48665e.tar.gz | |
Initial revision
git-svn-id: svn://svn.icculus.org/blackshades/trunk@2 5198baeb-e213-0410-be47-fc2ff85ca46f
Diffstat (limited to 'Source/Files.h')
| -rw-r--r-- | Source/Files.h | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/Source/Files.h b/Source/Files.h new file mode 100644 index 0000000..49572df --- /dev/null +++ b/Source/Files.h @@ -0,0 +1,88 @@ +#ifndef _FILES_H_ +#define _FILES_H_ + +#include <stdio.h> +#include <stdlib.h> // Header File For Standard functions +#include <stdio.h> // Header File For Standard Input/Output +#include <string.h> +#include <ctype.h> +#include "gl.h" // Header File For The OpenGL32 Library +#include "glu.h" // Header File For The GLu32 Library +#include "tk.h" // Header File For The Glaux Library +#include <Sound.h> +#include <Resources.h> +#include "AGL_DSp.h" // Header for OpenGL and DrawSprocket Functions +#include "MacInput.h" // Header for Special Mac Input functions +#include "Alerts.h" // Header for Dialogs and alerts for this application +#include <cstdarg> +#include <math.h> +#include "glm.h" +#include <TextUtils.h> +#include <iostream.h> +#include <fstream.h> + +#define FILE_STRINGS 130 +#define Pstr unsigned char * +#define Cstr char * + +#define FILE_ERROR_ALERT 138 +#define OLD_SAVE_VERSION 139 +#define UNREADABLE_SCORES_ALERT 140 + +#define SAVE_WARNING_ID 132 +#define PB_SAVE 1 +#define PB_CANCEL 2 +#define PB_DONT_SAVE 3 + +#define FILE_ERROR_STRINGS 129 +#define FILE_ERROR_PREFIX 1 +#define FILE_ERROR_SUFFIX 2 + +#define SAVE_WARNING_STRINGS 132 + +#define FILE_STRINGS 130 +#define SAVE_GAME_STRING 1 +#define SAVE_SCORES_STRING 2 +#define SCORES_NAME_STRING 3 +#define SAVE_JOURNAL_STRING 4 +#define JOURNAL_NAME_STRING 5 +#define UNTITLED_STRING 6 +#define SAVE_FORM_STRING 7 +#define FORM_NAME_STRING 8 + +#define REGISTRATION_FORM 136 + +#define FILE_NAME_SIZE 32 +#define ERROR_LENGTH 80 + +/**> Files Opening <**/ +class Files +{ + public: + char szSavedGameName[FILE_NAME_SIZE + 1]; + short sSavedGameVolume; + SFReply sfReply; + Boolean bGameSaved; + short sFile; + long lSize; + + short OpenFile(Str255 Name); + short PromptForSaveAS( short sPromptID, + short sNameID, + Str255 str255NamePrompt, + OSType osTypeCreator, + OSType osTypeType, + SFReply *psfReply ); + short OpenNewFile( SFReply *psfReply, OSType osTypeCreator, OSType osTypeType ); + short OpenSavedGame(Str255 Name); + short OpenFileDialog(); + void LoadNamedMap(Str255 Name); + void LoadGame(Str255 Name, int animnum); + void LoadMap(); + void StartSave(); + void EndSave(); + void StartLoad(); + void EndLoad(); +}; + +#endif
\ No newline at end of file |
