22 #ifndef CINE_VARIOUS_H 23 #define CINE_VARIOUS_H 26 #include "common/file.h" 27 #include "common/keyboard.h" 29 #include "cine/cine.h" 33 #define kMaxSavegames 100 34 #define kMaxOrigUiSavegames 20 // 20 fit on screen using original save/load interface 37 #define kMaxCommandBufferSize 80 41 int16 makeMenuChoice(
const CommandeType commandList[], uint16 height, uint16 X, uint16 Y, uint16 width,
int minY = 0,
bool recheckValue =
false,
bool allowEmpty =
false);
42 void makeCommandLine();
43 void makeFWCommandLine();
44 void makeOSCommandLine();
45 void makeActionMenu();
46 void waitPlayerInput();
47 void setTextWindow(uint16 param1, uint16 param2, uint16 param3, uint16 param4);
49 extern int16 disableSystemMenu;
51 extern bool runOnlyUntilFreePartRangeFirst200;
53 extern CommandeType currentSaveName[kMaxSavegames];
75 extern uint16 lastType20OverlayBgIdx;
76 extern uint16 reloadBgPalOnNextFlip;
77 extern uint16 forbidBgPalReload;
78 extern uint16 gfxFadeOutCompleted;
79 extern uint16 gfxFadeInRequested;
82 extern int16 commandVar1;
83 extern int16 commandVar2;
84 extern int16 commandVar3[4];
86 extern char currentDatName[30];
87 extern uint16 musicIsPlaying;
89 extern uint16 errorVar;
92 extern uint16 allowPlayerInput;
94 extern uint16 checkForPendingDataLoadSwitch;
96 extern uint16 isDrawCommandEnabled;
97 extern uint16 waitForPlayerClick;
98 extern uint16 menuCommandLen;
99 extern bool _paletteNeedUpdate;
100 extern uint16 _messageLen;
102 extern int16 playerCommand;
104 extern char currentPrcName[20];
105 extern char currentRelName[20];
106 extern char currentObjectName[20];
107 extern char currentMsgName[20];
108 extern char newPrcName[20];
109 extern char newRelName[20];
110 extern char newObjectName[20];
111 extern char newMsgName[20];
113 extern char currentCtName[15];
114 extern char currentPartName[15];
117 void stopMusicAfterFadeOut();
118 void playerCommandMouseLeftRightUp(uint16 mouseX, uint16 mouseY);
119 uint16 executePlayerInput();
123 extern uint16 mouseUpdateStatus;
124 extern uint16 dummyU16;
126 void getMouseData(uint16 param, uint16 *pButton, uint16 *pX, uint16 *pY);
128 uint16 processKeyboard(uint16 param);
132 void checkForPendingDataLoad();
136 void removeExtension(
char *dest,
const char *source,
size_t sz);
143 #define NUM_MAX_ZONE 16 145 void addMessage(byte param1, int16 param2, int16 param3, int16 param4, int16 param5);
147 void removeMessages();
149 void removeSeq(uint16 param1, uint16 param2, uint16 param3);
150 bool isSeqRunning(uint16 param1, uint16 param2, uint16 param3);
151 void addSeqListElement(uint16
objIdx, int16 param1, int16 param2, int16 frame, int16 param4, int16 param5, int16 param6, int16 param7, int16 param8);
152 void modifySeqListElement(uint16 objIdx, int16 var4Test, int16 param1, int16 param2, int16 param3, int16 param4);
153 void processSeqList();
155 void resetGfxEntityEntry(uint16 objIdx);
157 bool makeTextEntryMenu(
const char *caption,
char *
string,
int strLen,
int y);
158 void moveUsingKeyboard(
int x,
int y);
159 int16 getObjectUnderCursor(uint16 x, uint16 y);
uint32 safeControlsLastAccessedMs
Time in milliseconds when safe controls were last accessed.
int16 lastSafeControlObjIdx
Object index of the last safe control accessed.
Definition: various.h:138
uint16 objIdx
Is this really unsigned?
Definition: various.h:57
Language
Definition: language.h:45