forked from cyxx/rawgl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
engine.h
60 lines (46 loc) · 1.09 KB
/
engine.h
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
/*
* Another World engine rewrite
* Copyright (C) 2004-2005 Gregory Montoir ([email protected])
*/
#ifndef ENGINE_H__
#define ENGINE_H__
#include "intern.h"
#include "script.h"
#include "mixer.h"
#include "sfxplayer.h"
#include "resource.h"
#include "video.h"
struct Graphics;
struct SystemStub;
struct Engine {
enum {
kStateLogo3DO,
kStateTitle3DO,
kStateGame
};
int _state;
Graphics *_graphics;
SystemStub *_stub;
Script _script;
Mixer _mix;
Resource _res;
SfxPlayer _ply;
Video _vid;
int _partNum;
Engine(const char *dataDir, int partNum);
void setSystemStub(SystemStub *, Graphics *);
const char *getGameTitle(Language lang) const { return _res.getGameTitle(lang); }
void run();
void setup(Language lang, int graphicsType, const char *scalerName, int scalerFactor);
void finish();
void processInput();
// 3DO
void doThreeScreens();
void doEndCredits();
void playCinepak(const char *name);
void scrollText(int a, int b, const char *text);
void titlePage();
void saveGameState(uint8_t slot, const char *desc);
void loadGameState(uint8_t slot);
};
#endif