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

lua_v2.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_V2
00024 #define GRIM_LUA_V2
00025 
00026 #include "engines/grim/lua_v1.h"
00027 
00028 namespace Grim {
00029 
00030 class Lua_V2 : public Lua_V1 {
00031 public:
00032     typedef Lua_V2 LuaClass;
00033     void registerOpcodes() override;
00034 
00035 protected:
00036     virtual bool findCostume(lua_Object costumeObj, Actor *actor, Costume **costume) override;
00037     void setChoreAndCostume(lua_Object choreObj, lua_Object costumeObj, Actor *actor, Costume *&costume, int &chore);
00038     static uint convertEmiVolumeToMixer(uint emiVolume);
00039     static uint convertMixerVolumeToEmi(uint volume);
00040     static const uint MAX_EMI_VOLUME = 100;
00041 
00042     DECLARE_LUA_OPCODE(UndimAll);
00043     DECLARE_LUA_OPCODE(SetActorLocalAlpha);
00044     DECLARE_LUA_OPCODE(UndimRegion);
00045     DECLARE_LUA_OPCODE(DimScreen);
00046     DECLARE_LUA_OPCODE(MakeCurrentSetup);
00047     DECLARE_LUA_OPCODE(SetActorGlobalAlpha);
00048     DECLARE_LUA_OPCODE(ImGetMillisecondPosition);
00049     DECLARE_LUA_OPCODE(RemoveActorFromOverworld);
00050     DECLARE_LUA_OPCODE(UnloadActor);
00051     DECLARE_LUA_OPCODE(SetActorWalkRate);
00052     DECLARE_LUA_OPCODE(GetActorWalkRate);
00053     DECLARE_LUA_OPCODE(SetActorTurnRate);
00054     DECLARE_LUA_OPCODE(SetReverb);
00055     DECLARE_LUA_OPCODE(LockBackground);
00056     DECLARE_LUA_OPCODE(UnLockBackground);
00057     DECLARE_LUA_OPCODE(LockChore);
00058     DECLARE_LUA_OPCODE(IsActorChoring);
00059     DECLARE_LUA_OPCODE(IsChoreValid);
00060     DECLARE_LUA_OPCODE(IsChorePlaying);
00061     DECLARE_LUA_OPCODE(StopChore);
00062     DECLARE_LUA_OPCODE(AdvanceChore);
00063     DECLARE_LUA_OPCODE(SetActorSortOrder);
00064     DECLARE_LUA_OPCODE(ActorActivateShadow);
00065     DECLARE_LUA_OPCODE(ActorStopMoving);
00066     DECLARE_LUA_OPCODE(ActorLookAt);
00067     DECLARE_LUA_OPCODE(PutActorInOverworld);
00068     DECLARE_LUA_OPCODE(GetActorWorldPos);
00069     DECLARE_LUA_OPCODE(MakeScreenTextures);
00070     DECLARE_LUA_OPCODE(PutActorInSet);
00071     DECLARE_LUA_OPCODE(LoadBundle);
00072     DECLARE_LUA_OPCODE(AreWeInternational);
00073     DECLARE_LUA_OPCODE(ImSetState);
00074     DECLARE_LUA_OPCODE(EnableVoiceFX);
00075     DECLARE_LUA_OPCODE(SetGroupVolume);
00076     DECLARE_LUA_OPCODE(EnableAudioGroup);
00077     DECLARE_LUA_OPCODE(ImSelectSet);
00078     DECLARE_LUA_OPCODE(GetActorChores);
00079     DECLARE_LUA_OPCODE(PlayActorChore);
00080     DECLARE_LUA_OPCODE(StopActorChores);
00081     DECLARE_LUA_OPCODE(SetActorLighting);
00082     DECLARE_LUA_OPCODE(SetActorCollisionMode);
00083     DECLARE_LUA_OPCODE(SetActorCollisionScale);
00084     DECLARE_LUA_OPCODE(GetActorPuckVector);
00085     DECLARE_LUA_OPCODE(SetActorHeadLimits);
00086     DECLARE_LUA_OPCODE(SetActorHead);
00087     DECLARE_LUA_OPCODE(SetActorFOV);
00088     DECLARE_LUA_OPCODE(AttachActor);
00089     DECLARE_LUA_OPCODE(DetachActor);
00090     DECLARE_LUA_OPCODE(GetCPUSpeed);
00091     DECLARE_LUA_OPCODE(StartMovie);
00092     DECLARE_LUA_OPCODE(IsMoviePlaying);
00093     DECLARE_LUA_OPCODE(SetActiveCD);
00094     DECLARE_LUA_OPCODE(GetActiveCD);
00095     DECLARE_LUA_OPCODE(PurgeText);
00096     DECLARE_LUA_OPCODE(ImFlushStack);
00097     DECLARE_LUA_OPCODE(LoadSound);
00098     DECLARE_LUA_OPCODE(ImSetMusicVol);
00099     DECLARE_LUA_OPCODE(ImSetSfxVol);
00100     DECLARE_LUA_OPCODE(ImSetVoiceVol);
00101     DECLARE_LUA_OPCODE(ImSetVoiceEffect);
00102     DECLARE_LUA_OPCODE(ToggleOverworld);
00103     DECLARE_LUA_OPCODE(ScreenshotForSavegame);
00104     DECLARE_LUA_OPCODE(EngineDisplay);
00105     DECLARE_LUA_OPCODE(SetAmbientLight);
00106     DECLARE_LUA_OPCODE(Display);
00107     DECLARE_LUA_OPCODE(ThumbnailFromFile);
00108     DECLARE_LUA_OPCODE(ClearSpecialtyTexture);
00109     DECLARE_LUA_OPCODE(ClearOverworld);
00110     DECLARE_LUA_OPCODE(EnableActorPuck);
00111     DECLARE_LUA_OPCODE(GetActorSortOrder);
00112     DECLARE_LUA_OPCODE(IsChoreLooping);
00113     DECLARE_LUA_OPCODE(SetChoreLooping);
00114     DECLARE_LUA_OPCODE(PlayChore);
00115     DECLARE_LUA_OPCODE(PauseChore);
00116     DECLARE_LUA_OPCODE(CompleteChore);
00117     DECLARE_LUA_OPCODE(UnlockChore);
00118     DECLARE_LUA_OPCODE(LockChoreSet);
00119     DECLARE_LUA_OPCODE(UnlockChoreSet);
00120     DECLARE_LUA_OPCODE(EscapeMovie);
00121     DECLARE_LUA_OPCODE(StopAllSounds);
00122     DECLARE_LUA_OPCODE(FreeSound);
00123     DECLARE_LUA_OPCODE(PlayLoadedSound);
00124     DECLARE_LUA_OPCODE(StopSound);
00125     DECLARE_LUA_OPCODE(PlaySound);
00126     DECLARE_LUA_OPCODE(IsSoundPlaying);
00127     DECLARE_LUA_OPCODE(GetSoundVolume);
00128     DECLARE_LUA_OPCODE(SetSoundVolume);
00129     DECLARE_LUA_OPCODE(PlaySoundFrom);
00130     DECLARE_LUA_OPCODE(PlayLoadedSoundFrom);
00131     DECLARE_LUA_OPCODE(UpdateSoundPosition);
00132     DECLARE_LUA_OPCODE(ImStateHasLooped);
00133     DECLARE_LUA_OPCODE(ImStateHasEnded);
00134     DECLARE_LUA_OPCODE(ImPushState);
00135     DECLARE_LUA_OPCODE(ImPopState);
00136     DECLARE_LUA_OPCODE(ImPause);
00137     DECLARE_LUA_OPCODE(ImResume);
00138     DECLARE_LUA_OPCODE(GetSectorName);
00139     DECLARE_LUA_OPCODE(GetCameraPosition);
00140     DECLARE_LUA_OPCODE(GetCameraYaw);
00141     DECLARE_LUA_OPCODE(YawCamera);
00142     DECLARE_LUA_OPCODE(GetCameraPitch);
00143     DECLARE_LUA_OPCODE(GetCameraRoll);
00144     DECLARE_LUA_OPCODE(PitchCamera);
00145     DECLARE_LUA_OPCODE(RollCamera);
00146     DECLARE_LUA_OPCODE(NewLayer);
00147     DECLARE_LUA_OPCODE(FreeLayer);
00148     DECLARE_LUA_OPCODE(SetLayerSortOrder);
00149     DECLARE_LUA_OPCODE(SetLayerFrame);
00150     DECLARE_LUA_OPCODE(AdvanceLayerFrame);
00151     DECLARE_LUA_OPCODE(PushText);
00152     DECLARE_LUA_OPCODE(PopText);
00153     DECLARE_LUA_OPCODE(NukeAllScriptLocks);
00154     DECLARE_LUA_OPCODE(ToggleDebugDraw);
00155     DECLARE_LUA_OPCODE(ToggleDrawCameras);
00156     DECLARE_LUA_OPCODE(ToggleDrawLights);
00157     DECLARE_LUA_OPCODE(ToggleDrawSectors);
00158     DECLARE_LUA_OPCODE(ToggleDrawBBoxes);
00159     DECLARE_LUA_OPCODE(ToggleDrawFPS);
00160     DECLARE_LUA_OPCODE(ToggleDrawPerformance);
00161     DECLARE_LUA_OPCODE(ToggleDrawActorStats);
00162     DECLARE_LUA_OPCODE(SectEditSelect);
00163     DECLARE_LUA_OPCODE(SectEditPlace);
00164     DECLARE_LUA_OPCODE(SectEditDelete);
00165     DECLARE_LUA_OPCODE(SectEditInsert);
00166     DECLARE_LUA_OPCODE(SectEditSortAdd);
00167     DECLARE_LUA_OPCODE(SectEditForgetIt);
00168     DECLARE_LUA_OPCODE(FRUTEY_Begin);
00169     DECLARE_LUA_OPCODE(FRUTEY_End);
00170     DECLARE_LUA_OPCODE(GetFontDimensions);
00171     DECLARE_LUA_OPCODE(GetTextObjectDimensions);
00172     DECLARE_LUA_OPCODE(GetTextCharPosition);
00173     DECLARE_LUA_OPCODE(SetActorRestChore);
00174     DECLARE_LUA_OPCODE(SetActorWalkChore);
00175     DECLARE_LUA_OPCODE(SetActorTurnChores);
00176     DECLARE_LUA_OPCODE(SetActorTalkChore);
00177     DECLARE_LUA_OPCODE(SetActorMumblechore);
00178     DECLARE_LUA_OPCODE(GammaEnabled);
00179     DECLARE_LUA_OPCODE(FileFindFirst);
00180     DECLARE_LUA_OPCODE(WalkActorToAvoiding);
00181     DECLARE_LUA_OPCODE(WalkActorVector);
00182     DECLARE_LUA_OPCODE(LocalizeString);
00183     DECLARE_LUA_OPCODE(WorldToScreen);
00184     DECLARE_LUA_OPCODE(RenderModeUser);
00185     //PS2:
00186     DECLARE_LUA_OPCODE(GetMemoryCardId);
00187     DECLARE_LUA_OPCODE(OverWorldToScreen);
00188     DECLARE_LUA_OPCODE(SetReplayMode);
00189     //ResidualVM-hacks:
00190     DECLARE_LUA_OPCODE(GetResidualVMPreference);
00191     DECLARE_LUA_OPCODE(SetResidualVMPreference);
00192 };
00193 
00194 } // end of namespace Grim
00195 
00196 #endif


Generated on Sat Dec 14 2019 05:00:35 for ResidualVM by doxygen 1.7.1
curved edge   curved edge