blob: b743e2b846944b9ecc2e0cadeb324b7fd0b56217 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
#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 <cstdarg>
#include <cmath>
#include <iostream>
#include <fstream>
#include <GL/gl.h>
#include <GL/glu.h>
#include "MacInput.h" // Header for Special Mac Input functions
#include "Support.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;
int sFile;
int OpenFile(Str255 Name);
Files() : sFile(-1) { }
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
|