ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

lua_v1.h

Go to the documentation of this file.
00001 /* ResidualVM - A 3D game interpreter
00002  *
00003  * ResidualVM is the legal property of its developers, whose names
00004  * are too numerous to list here. Please refer to the COPYRIGHT
00005  * file distributed with this source distribution.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020  *
00021  */
00022 
00023 #ifndef GRIM_LUA_V1
00024 #define GRIM_LUA_V1
00025 
00026 #include "engines/grim/lua.h"
00027 
00028 // Windows.h badness: Remove #defines to the following Win32 API MultiByte/Unicode functions.
00029 #ifdef GetDiskFreeSpace
00030 #undef GetDiskFreeSpace
00031 #endif
00032 
00033 #ifdef PlaySound
00034 #undef PlaySound
00035 #endif
00036 
00037 namespace Grim {
00038 
00039 class Lua_V1 : public LuaBase {
00040 public:
00041     typedef Lua_V1 LuaClass;
00042     void registerOpcodes() override;
00043     void boot() override;
00044     void postRestoreHandle() override;
00045 
00046 protected:
00047     // Opcodes
00048     DECLARE_LUA_OPCODE(new_dofile);
00049     DECLARE_LUA_OPCODE(PrintDebug);
00050     DECLARE_LUA_OPCODE(PrintError);
00051     DECLARE_LUA_OPCODE(PrintWarning);
00052     DECLARE_LUA_OPCODE(FunctionName);
00053     DECLARE_LUA_OPCODE(CheckForFile);
00054     DECLARE_LUA_OPCODE(MakeColor);
00055     DECLARE_LUA_OPCODE(GetColorComponents);
00056     DECLARE_LUA_OPCODE(ReadRegistryValue);
00057     DECLARE_LUA_OPCODE(WriteRegistryValue);
00058     DECLARE_LUA_OPCODE(LoadActor);
00059     DECLARE_LUA_OPCODE(GetActorTimeScale);
00060     DECLARE_LUA_OPCODE(SetSelectedActor);
00061     DECLARE_LUA_OPCODE(GetCameraActor);
00062     DECLARE_LUA_OPCODE(SetSayLineDefaults);
00063     DECLARE_LUA_OPCODE(SetActorTalkColor);
00064     DECLARE_LUA_OPCODE(GetActorTalkColor);
00065     DECLARE_LUA_OPCODE(SetActorRestChore);
00066     DECLARE_LUA_OPCODE(SetActorWalkChore);
00067     DECLARE_LUA_OPCODE(SetActorTurnChores);
00068     DECLARE_LUA_OPCODE(SetActorTalkChore);
00069     DECLARE_LUA_OPCODE(SetActorMumblechore);
00070     DECLARE_LUA_OPCODE(SetActorVisibility);
00071     DECLARE_LUA_OPCODE(SetActorScale);
00072     DECLARE_LUA_OPCODE(SetActorTimeScale);
00073     DECLARE_LUA_OPCODE(SetActorCollisionMode);
00074     DECLARE_LUA_OPCODE(SetActorCollisionScale);
00075     DECLARE_LUA_OPCODE(PutActorAt);
00076     DECLARE_LUA_OPCODE(GetActorPos);
00077     DECLARE_LUA_OPCODE(SetActorRot);
00078     DECLARE_LUA_OPCODE(GetActorRot);
00079     DECLARE_LUA_OPCODE(IsActorTurning);
00080     DECLARE_LUA_OPCODE(GetAngleBetweenActors);
00081     DECLARE_LUA_OPCODE(GetAngleBetweenVectors);
00082     DECLARE_LUA_OPCODE(GetActorYawToPoint);
00083     DECLARE_LUA_OPCODE(PutActorInSet);
00084     DECLARE_LUA_OPCODE(SetActorWalkRate);
00085     DECLARE_LUA_OPCODE(GetActorWalkRate);
00086     DECLARE_LUA_OPCODE(SetActorTurnRate);
00087     DECLARE_LUA_OPCODE(WalkActorForward);
00088     DECLARE_LUA_OPCODE(SetActorReflection);
00089     DECLARE_LUA_OPCODE(GetActorPuckVector);
00090     DECLARE_LUA_OPCODE(ActorPuckOrient);
00091     DECLARE_LUA_OPCODE(WalkActorTo);
00092     DECLARE_LUA_OPCODE(ActorToClean);
00093     DECLARE_LUA_OPCODE(IsActorMoving);
00094     DECLARE_LUA_OPCODE(Is3DHardwareEnabled);
00095     DECLARE_LUA_OPCODE(SetHardwareState);
00096     DECLARE_LUA_OPCODE(SetVideoDevices);
00097     DECLARE_LUA_OPCODE(GetVideoDevices);
00098     DECLARE_LUA_OPCODE(EnumerateVideoDevices);
00099     DECLARE_LUA_OPCODE(Enumerate3DDevices);
00100     DECLARE_LUA_OPCODE(IsActorResting);
00101     DECLARE_LUA_OPCODE(GetActorNodeLocation);
00102     DECLARE_LUA_OPCODE(SetActorWalkDominate);
00103     DECLARE_LUA_OPCODE(SetActorColormap);
00104     DECLARE_LUA_OPCODE(TurnActor);
00105     DECLARE_LUA_OPCODE(PushActorCostume);
00106     DECLARE_LUA_OPCODE(SetActorCostume);
00107     DECLARE_LUA_OPCODE(GetActorCostume);
00108     DECLARE_LUA_OPCODE(PopActorCostume);
00109     DECLARE_LUA_OPCODE(GetActorCostumeDepth);
00110     DECLARE_LUA_OPCODE(PrintActorCostumes);
00111     DECLARE_LUA_OPCODE(LoadCostume);
00112     DECLARE_LUA_OPCODE(PlayActorChore);
00113     DECLARE_LUA_OPCODE(CompleteActorChore);
00114     DECLARE_LUA_OPCODE(PlayActorChoreLooping);
00115     DECLARE_LUA_OPCODE(SetActorChoreLooping);
00116     DECLARE_LUA_OPCODE(StopActorChore);
00117     DECLARE_LUA_OPCODE(FadeOutChore);
00118     DECLARE_LUA_OPCODE(FadeInChore);
00119     DECLARE_LUA_OPCODE(IsActorChoring);
00120     DECLARE_LUA_OPCODE(ActorLookAt);
00121     DECLARE_LUA_OPCODE(TurnActorTo);
00122     DECLARE_LUA_OPCODE(PointActorAt);
00123     DECLARE_LUA_OPCODE(WalkActorVector);
00124     DECLARE_LUA_OPCODE(RotateVector);
00125     DECLARE_LUA_OPCODE(SetActorPitch);
00126     DECLARE_LUA_OPCODE(SetActorLookRate);
00127     DECLARE_LUA_OPCODE(GetActorLookRate);
00128     DECLARE_LUA_OPCODE(SetActorHead);
00129     DECLARE_LUA_OPCODE(PutActorAtInterest);
00130     DECLARE_LUA_OPCODE(SetActorFollowBoxes);
00131     DECLARE_LUA_OPCODE(SetActorConstrain);
00132     DECLARE_LUA_OPCODE(GetVisibleThings);
00133     DECLARE_LUA_OPCODE(SetShadowColor);
00134     DECLARE_LUA_OPCODE(KillActorShadows);
00135     DECLARE_LUA_OPCODE(SetActiveShadow);
00136     DECLARE_LUA_OPCODE(SetActorShadowPoint);
00137     DECLARE_LUA_OPCODE(SetActorShadowPlane);
00138     DECLARE_LUA_OPCODE(AddShadowPlane);
00139     DECLARE_LUA_OPCODE(ActivateActorShadow);
00140     DECLARE_LUA_OPCODE(SetActorShadowValid);
00141     DECLARE_LUA_OPCODE(TextFileGetLine);
00142     DECLARE_LUA_OPCODE(TextFileGetLineCount);
00143     DECLARE_LUA_OPCODE(LocalizeString);
00144     DECLARE_LUA_OPCODE(SayLine);
00145     DECLARE_LUA_OPCODE(PrintLine);
00146     DECLARE_LUA_OPCODE(InputDialog);
00147     DECLARE_LUA_OPCODE(IsMessageGoing);
00148     DECLARE_LUA_OPCODE(ShutUpActor);
00149     DECLARE_LUA_OPCODE(GetPointSector);
00150     DECLARE_LUA_OPCODE(GetActorSector);
00151     DECLARE_LUA_OPCODE(IsActorInSector);
00152     DECLARE_LUA_OPCODE(IsPointInSector);
00153     DECLARE_LUA_OPCODE(MakeSectorActive);
00154     DECLARE_LUA_OPCODE(LockSet);
00155     DECLARE_LUA_OPCODE(UnLockSet);
00156     DECLARE_LUA_OPCODE(MakeCurrentSet);
00157     DECLARE_LUA_OPCODE(MakeCurrentSetup);
00158     DECLARE_LUA_OPCODE(GetCurrentSetup);
00159     DECLARE_LUA_OPCODE(ShrinkBoxes);
00160     DECLARE_LUA_OPCODE(UnShrinkBoxes);
00161     DECLARE_LUA_OPCODE(GetShrinkPos);
00162     DECLARE_LUA_OPCODE(ImStartSound);
00163     DECLARE_LUA_OPCODE(ImStopSound);
00164     DECLARE_LUA_OPCODE(ImStopAllSounds);
00165     DECLARE_LUA_OPCODE(ImPause);
00166     DECLARE_LUA_OPCODE(ImResume);
00167     DECLARE_LUA_OPCODE(ImSetVoiceEffect);
00168     DECLARE_LUA_OPCODE(ImSetMusicVol);
00169     DECLARE_LUA_OPCODE(ImGetMusicVol);
00170     DECLARE_LUA_OPCODE(ImSetVoiceVol);
00171     DECLARE_LUA_OPCODE(ImGetVoiceVol);
00172     DECLARE_LUA_OPCODE(ImSetSfxVol);
00173     DECLARE_LUA_OPCODE(ImGetSfxVol);
00174     DECLARE_LUA_OPCODE(ImSetParam);
00175     DECLARE_LUA_OPCODE(ImGetParam);
00176     DECLARE_LUA_OPCODE(ImFadeParam);
00177     DECLARE_LUA_OPCODE(ImSetState);
00178     DECLARE_LUA_OPCODE(ImSetSequence);
00179     DECLARE_LUA_OPCODE(SaveIMuse);
00180     DECLARE_LUA_OPCODE(RestoreIMuse);
00181     DECLARE_LUA_OPCODE(SetSoundPosition);
00182     DECLARE_LUA_OPCODE(IsSoundPlaying);
00183     DECLARE_LUA_OPCODE(PlaySoundAt);
00184     DECLARE_LUA_OPCODE(FileFindDispose);
00185     DECLARE_LUA_OPCODE(FileFindNext);
00186     DECLARE_LUA_OPCODE(FileFindFirst);
00187     DECLARE_LUA_OPCODE(PerSecond);
00188     DECLARE_LUA_OPCODE(EnableControl);
00189     DECLARE_LUA_OPCODE(DisableControl);
00190     DECLARE_LUA_OPCODE(GetControlState);
00191     DECLARE_LUA_OPCODE(GetImage);
00192     DECLARE_LUA_OPCODE(FreeImage);
00193     DECLARE_LUA_OPCODE(BlastImage);
00194     DECLARE_LUA_OPCODE(CleanBuffer);
00195     DECLARE_LUA_OPCODE(Exit);
00196     DECLARE_LUA_OPCODE(KillTextObject);
00197     DECLARE_LUA_OPCODE(ChangeTextObject);
00198     DECLARE_LUA_OPCODE(GetTextSpeed);
00199     DECLARE_LUA_OPCODE(SetTextSpeed);
00200     DECLARE_LUA_OPCODE(MakeTextObject);
00201     DECLARE_LUA_OPCODE(GetTextObjectDimensions);
00202     DECLARE_LUA_OPCODE(ExpireText);
00203     DECLARE_LUA_OPCODE(GetTextCharPosition);
00204     DECLARE_LUA_OPCODE(BlastText);
00205     DECLARE_LUA_OPCODE(SetOffscreenTextPos);
00206     DECLARE_LUA_OPCODE(SetSpeechMode);
00207     DECLARE_LUA_OPCODE(GetSpeechMode);
00208     DECLARE_LUA_OPCODE(StartFullscreenMovie);
00209     DECLARE_LUA_OPCODE(StartMovie);
00210     DECLARE_LUA_OPCODE(IsFullscreenMoviePlaying);
00211     DECLARE_LUA_OPCODE(IsMoviePlaying);
00212     DECLARE_LUA_OPCODE(StopMovie);
00213     DECLARE_LUA_OPCODE(PauseMovie);
00214     DECLARE_LUA_OPCODE(PurgePrimitiveQueue);
00215     DECLARE_LUA_OPCODE(DrawPolygon);
00216     DECLARE_LUA_OPCODE(DrawLine);
00217     DECLARE_LUA_OPCODE(ChangePrimitive);
00218     DECLARE_LUA_OPCODE(DrawRectangle);
00219     DECLARE_LUA_OPCODE(BlastRect);
00220     DECLARE_LUA_OPCODE(KillPrimitive);
00221     DECLARE_LUA_OPCODE(DimScreen);
00222     DECLARE_LUA_OPCODE(DimRegion);
00223     DECLARE_LUA_OPCODE(GetDiskFreeSpace);
00224     DECLARE_LUA_OPCODE(NewObjectState);
00225     DECLARE_LUA_OPCODE(FreeObjectState);
00226     DECLARE_LUA_OPCODE(SendObjectToBack);
00227     DECLARE_LUA_OPCODE(SendObjectToFront);
00228     DECLARE_LUA_OPCODE(SetObjectType);
00229     DECLARE_LUA_OPCODE(GetCurrentScript);
00230     DECLARE_LUA_OPCODE(ScreenShot);
00231     DECLARE_LUA_OPCODE(GetSaveGameImage);
00232     DECLARE_LUA_OPCODE(SubmitSaveGameData);
00233     DECLARE_LUA_OPCODE(GetSaveGameData);
00234     DECLARE_LUA_OPCODE(Load);
00235     DECLARE_LUA_OPCODE(Save);
00236     DECLARE_LUA_OPCODE(Remove);
00237     DECLARE_LUA_OPCODE(LockFont);
00238     DECLARE_LUA_OPCODE(EnableDebugKeys);
00239     DECLARE_LUA_OPCODE(LightMgrSetChange);
00240     DECLARE_LUA_OPCODE(SetAmbientLight);
00241     DECLARE_LUA_OPCODE(SetLightIntensity);
00242     DECLARE_LUA_OPCODE(SetLightPosition);
00243     DECLARE_LUA_OPCODE(TurnLightOn);
00244     DECLARE_LUA_OPCODE(RenderModeUser);
00245     DECLARE_LUA_OPCODE(PreRender);
00246     DECLARE_LUA_OPCODE(IrisUp);
00247     DECLARE_LUA_OPCODE(IrisDown);
00248     DECLARE_LUA_OPCODE(SetGamma);
00249     DECLARE_LUA_OPCODE(Display);
00250     DECLARE_LUA_OPCODE(EngineDisplay);
00251     DECLARE_LUA_OPCODE(ForceRefresh);
00252     DECLARE_LUA_OPCODE(JustLoaded);
00253     DECLARE_LUA_OPCODE(PlaySound);
00254     DECLARE_LUA_OPCODE(SetEmergencyFont);
00255     DECLARE_LUA_OPCODE(LoadBundle);
00256     DECLARE_LUA_OPCODE(LightMgrStartup);
00257     DECLARE_LUA_OPCODE(GetSectorOppositeEdge);
00258     DECLARE_LUA_OPCODE(SetActorInvClipNode);
00259     DECLARE_LUA_OPCODE(NukeResources);
00260     DECLARE_LUA_OPCODE(ResetTextures);
00261     DECLARE_LUA_OPCODE(AttachToResources);
00262     DECLARE_LUA_OPCODE(DetachFromResources);
00263     DECLARE_LUA_OPCODE(SetActorClipPlane);
00264     DECLARE_LUA_OPCODE(SetActorClipActive);
00265     DECLARE_LUA_OPCODE(FlushControls);
00266     DECLARE_LUA_OPCODE(GetCameraLookVector);
00267     DECLARE_LUA_OPCODE(SetCameraRoll);
00268     DECLARE_LUA_OPCODE(SetCameraInterest);
00269     DECLARE_LUA_OPCODE(GetCameraPosition);
00270     DECLARE_LUA_OPCODE(SpewStartup);
00271     DECLARE_LUA_OPCODE(PreviousSetup);
00272     DECLARE_LUA_OPCODE(NextSetup);
00273     DECLARE_LUA_OPCODE(WorldToScreen);
00274     DECLARE_LUA_OPCODE(SetActorRoll);
00275     DECLARE_LUA_OPCODE(SetActorFrustrumCull);
00276     DECLARE_LUA_OPCODE(DriveActorTo);
00277     DECLARE_LUA_OPCODE(GetActorRect);
00278     DECLARE_LUA_OPCODE(GetTranslationMode);
00279     DECLARE_LUA_OPCODE(SetTranslationMode);
00280     DECLARE_LUA_OPCODE(WalkActorToAvoiding);
00281     DECLARE_LUA_OPCODE(GetActorChores);
00282     DECLARE_LUA_OPCODE(SetCameraPosition);
00283     DECLARE_LUA_OPCODE(GetCameraFOV);
00284     DECLARE_LUA_OPCODE(SetCameraFOV);
00285     DECLARE_LUA_OPCODE(GetCameraRoll);
00286     DECLARE_LUA_OPCODE(GetMemoryUsage);
00287     DECLARE_LUA_OPCODE(GetFontDimensions);
00288     DECLARE_LUA_OPCODE(PurgeText);
00289 };
00290 
00291 }
00292 
00293 #endif


Generated on Sat May 25 2019 05:00:48 for ResidualVM by doxygen 1.7.1
curved edge   curved edge