ScummVM API documentation
lua_remastered.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef GRIM_LUA_REMASTERED
23 #define GRIM_LUA_REMASTERED
24 
25 #include "engines/grim/lua_v1.h"
26 #include "engines/grim/remastered/commentary.h"
27 
28 namespace Grim {
29 
30 class Lua_Remastered : public Lua_V1 {
31 public:
32  typedef Lua_Remastered LuaClass;
33  void registerOpcodes() override;
34 
35 protected:
36 
37  // Overrides from Lua_V1
38  DECLARE_LUA_OPCODE(GetFontDimensions) override;
39  DECLARE_LUA_OPCODE(GetTextObjectDimensions) override;
40  DECLARE_LUA_OPCODE(Load) override;
41  DECLARE_LUA_OPCODE(Save) override;
42 
43  // Remastered
44  DECLARE_LUA_OPCODE(GetPlatform);
45  DECLARE_LUA_OPCODE(GetLanguage);
46  DECLARE_LUA_OPCODE(PreloadCursors);
47  DECLARE_LUA_OPCODE(ReadRegistryIntValue);
48  DECLARE_LUA_OPCODE(WidescreenCorrectionFactor);
49  DECLARE_LUA_OPCODE(InitiateFindSaveGames);
50  DECLARE_LUA_OPCODE(FindSaveGames);
51  DECLARE_LUA_OPCODE(GetFindSaveGameStatus);
52  DECLARE_LUA_OPCODE(AreAchievementsInstalled);
53  DECLARE_LUA_OPCODE(UnlockAchievement);
54  DECLARE_LUA_OPCODE(ImGetCommentaryVol);
55  DECLARE_LUA_OPCODE(ImSetCommentaryVol);
56  DECLARE_LUA_OPCODE(SetMouseSpeedScale);
57  DECLARE_LUA_OPCODE(SetResolutionScaling);
58  DECLARE_LUA_OPCODE(SetAdvancedLighting);
59  DECLARE_LUA_OPCODE(SetLanguage);
60  DECLARE_LUA_OPCODE(PlayCurrentCommentary);
61  DECLARE_LUA_OPCODE(IsPlayingCommentary);
62  DECLARE_LUA_OPCODE(EnableCommentary);
63  DECLARE_LUA_OPCODE(ClearCommentary);
64  DECLARE_LUA_OPCODE(HasHeardCommentary);
65  DECLARE_LUA_OPCODE(SetCommentary);
66  DECLARE_LUA_OPCODE(LoadRemappedKeys);
67  DECLARE_LUA_OPCODE(GlobalSaveResolved);
68  DECLARE_LUA_OPCODE(StopCommentaryImmediately);
69  DECLARE_LUA_OPCODE(DestroyAllUIButtonsImmediately);
70  DECLARE_LUA_OPCODE(UpdateUIButtons);
71  DECLARE_LUA_OPCODE(OverlayClearCache);
72  DECLARE_LUA_OPCODE(GetGameRenderMode);
73  DECLARE_LUA_OPCODE(SetGameRenderMode);
74  DECLARE_LUA_OPCODE(OverlayMove);
75  DECLARE_LUA_OPCODE(OverlayCreate);
76  DECLARE_LUA_OPCODE(OverlayDestroy);
77  DECLARE_LUA_OPCODE(OverlayFade);
78  DECLARE_LUA_OPCODE(OverlayGetScreenSize);
79  DECLARE_LUA_OPCODE(OverlayDimensions);
80  DECLARE_LUA_OPCODE(AddHotspot);
81  DECLARE_LUA_OPCODE(LinkHotspot);
82  DECLARE_LUA_OPCODE(RemoveHotspot);
83  DECLARE_LUA_OPCODE(UpdateHotspot);
84  DECLARE_LUA_OPCODE(QueryActiveHotspots);
85  DECLARE_LUA_OPCODE(HideMouseCursor);
86  DECLARE_LUA_OPCODE(SetCursor);
87  DECLARE_LUA_OPCODE(ShowCursor);
88  DECLARE_LUA_OPCODE(UpdateMouseCursor);
89  DECLARE_LUA_OPCODE(GetCursorPosition);
90  DECLARE_LUA_OPCODE(UnlockCutscene);
91  DECLARE_LUA_OPCODE(IsCutsceneUnlocked);
92  DECLARE_LUA_OPCODE(SetActorHKHackMode);
93  DECLARE_LUA_OPCODE(CacheCurrentWalkVector);
94  DECLARE_LUA_OPCODE(UnlockConcept);
95  DECLARE_LUA_OPCODE(IsConceptUnlocked);
96  DECLARE_LUA_OPCODE(SaveRegistryToDisk);
97  DECLARE_LUA_OPCODE(GetRemappedKeyName);
98  DECLARE_LUA_OPCODE(GetRemappedKeyHint);
99  DECLARE_LUA_OPCODE(SetKeyMappingMode);
100  DECLARE_LUA_OPCODE(ResetKeyMappingToDefault);
101  DECLARE_LUA_OPCODE(SaveRemappedKeys);
102  DECLARE_LUA_OPCODE(New);
103  DECLARE_LUA_OPCODE(RemoveBorders);
104  DECLARE_LUA_OPCODE(GetSaveStatus);
105  DECLARE_LUA_OPCODE(StartCheckOfCrossSaveStatus);
106  DECLARE_LUA_OPCODE(GetCrossSaveStatus);
107  DECLARE_LUA_OPCODE(GetFloorWalkPos);
108  DECLARE_LUA_OPCODE(CursorMovieEnabled);
109 };
110 
111 } // end of namespace Grim
112 
113 #endif
Definition: lua_v1.h:38
Definition: actor.h:33
Definition: lua_remastered.h:30
Definition: lua.h:107