25 #include "audio/mixer.h" 26 #include "awe/intern.h" 38 DIFFICULTY_NORMAL = 1,
43 typedef void (
Script:: *OpcodeStub)();
46 VAR_RANDOM_SEED = 0x3C,
48 VAR_SCREEN_NUM = 0x67,
50 VAR_LAST_KEYCHAR = 0xDA,
52 VAR_HERO_POS_UP_DOWN = 0xE5,
54 VAR_MUSIC_SYNC = 0xF4,
57 VAR_HERO_ACTION = 0xFA,
58 VAR_HERO_POS_JUMP_DOWN = 0xFB,
59 VAR_HERO_POS_LEFT_RIGHT = 0xFC,
60 VAR_HERO_POS_MASK = 0xFD,
61 VAR_HERO_ACTION_POS_MASK = 0xFE,
62 VAR_PAUSE_SLICES = 0xFF
65 static const OpcodeStub OPCODE_TABLE[];
66 static const uint16 PERIOD_TABLE[];
67 static Difficulty _difficulty;
68 static bool _useRemasteredAudio;
76 int16 _scriptVars[256] = { 0 };
77 uint16 _scriptStackCalls[64] = { 0 };
78 uint16 _scriptTasks[2][64] = { { 0 } };
79 uint8 _scriptStates[2][64] = { { 0 } };
82 bool _scriptPaused =
false;
83 bool _fastMode =
false;
86 uint32 _startTime = 0, _timeStamp = 0;
99 void op_installTask();
102 void op_setPalette();
103 void op_changeTasksState();
104 void op_selectPage();
107 void op_updateDisplay();
108 void op_removeTask();
109 void op_drawString();
116 void op_updateResources();
119 void restartAt(
int part,
int pos = -1);
120 void setupPart(
int num);
126 void inp_handleSpecialKeys();
128 void snd_playSound(uint16 resNum, uint8 freq, uint8 vol, uint8 channel);
129 void snd_playMusic(uint16 resNum, uint16 delay, uint8 pos);
130 void snd_preloadSound(uint16 resNum,
const uint8 *data);
132 void fixUpPalette_changeScreen(
int part,
int screen);
Definition: resource.h:89
Definition: aifc_player.h:29
Definition: avi_frames.h:36
Definition: system_stub.h:58
Definition: sfx_player.h:70