From 12210ecf27eea137e2ac9f58312d7143a0a015cb Mon Sep 17 00:00:00 2001 From: uruk Date: Thu, 24 Jul 2014 23:06:11 +0200 Subject: CGE2: Remove the unused opcodes. --- engines/cge2/snail.cpp | 12 +++++------- engines/cge2/snail.h | 13 +------------ 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp index 1bc821d9b8..5e889b2e61 100644 --- a/engines/cge2/snail.cpp +++ b/engines/cge2/snail.cpp @@ -36,23 +36,21 @@ namespace CGE2 { const char *CommandHandler::_commandText[] = { "NOP", "USE", "PAUSE", "INF", "CAVE", - "SLAVE", "FOCUS", "SETX", "SETY", "SETZ", - "ADD", "SUB", "MUL", "DIV", "IF", "FLAG", - "FLASH", "LIGHT", "CYCLE", + "SETX", "SETY", "SETZ", + "ADD", "SUB", "MUL", "DIV", "IF", + "FLASH", "CYCLE", "CLEAR", "TALK", "MOUSE", "MAP", "COUNT", "MIDI", - "SETDLG", "MSKDLG", ".DUMMY.", "WAIT", "HIDE", "ROOM", "SAY", "SOUND", "TIME", "KILL", "RSEQ", "SEQ", "SEND", "SWAP", "KEEP", "GIVE", - "GETPOS", "GOTO", "MOVEX", "MOVEY", - "MOVEZ", "TRANS", "PORT", + "GETPOS", "GOTO", "PORT", "NEXT", "NNEXT", "MTNEXT", "FTNEXT", "RNNEXT", "RMTNEXT", "RFTNEXT", "RMNEAR", "RMMTAKE", "RMFTAKE", - "SETREF", "BACKPT", + "SETREF", "WALKTO", "REACH", "COVER", "UNCOVER", nullptr }; diff --git a/engines/cge2/snail.h b/engines/cge2/snail.h index 6b0bdea546..a83926a3de 100644 --- a/engines/cge2/snail.h +++ b/engines/cge2/snail.h @@ -44,8 +44,6 @@ enum CommandType { kCmdPause, // PAUSE -1 :: delay /72 seconds kCmdInf, // INF -1 :: show text referrenced by kCmdCave, // CAVE -1 :: go to board - kCmdSlave, // SLAVE - kCmdFocus, // FOCUS :: change active hero kCmdSetX, // SETX :: set sprite shift in x axis kCmdSetY, // SETX :: set sprite shift in y axis kCmdSetZ, // SETX :: set sprite shift in z axis @@ -54,9 +52,7 @@ enum CommandType { kCmdMul, // MUL :: multiply vector by number kCmdDiv, // DIV :: divide vector by number kCmdIf, // IF - kCmdFlag, // FLAG :: set flag to kCmdFlash, // FLASH -1 0|1 :: lighten whole image (on/off) - kCmdLight, // LIGHT kCmdCycle, // CYCLE :: rotate colors from 1 kCmdClear, // CLEAR -1 0 :: clear kCmdAIL queue kCmdTalk, // TALK -1 0|1 :: enable speach (on/off) @@ -64,8 +60,6 @@ enum CommandType { kCmdMap, // MAP 0|1 0 :: temporarily turn off map for hero kCmdCount, // COUNT kCmdMidi, // MIDI -1 :: play MIDI referenced by (-1 = off) - kCmdSetDlg, // SETDLG 0..3 0..3 :: switch of speach mode - kCmdMskDlg, // MSKDLG 0..3 0..3 :: switch of speach mode mask kCmdSpr, @@ -84,10 +78,6 @@ enum CommandType { kCmdGive, // GIVE :: remove sprite from pocket and jump to kCmdGetPos, // GETPOS :: take sprite's position kCmdGoto, // GOTO :: move sprite to position - kCmdMoveX, // MOVEX :: relative move along X axis - kCmdMoveY, // MOVEY :: relative move along Y axis - kCmdMoveZ, // MOVEZ :: relative move along Z axis - kCmdTrans, // TRANS 0|1 :: clear/set logical transparency kCmdPort, // PORT 0|1 :: clear/set "takeability" of sprite kCmdNext, // NEXT :: jump to - NEAR or TAKE kCmdNNext, // NNEXT :: jump to - NEAR @@ -99,8 +89,7 @@ enum CommandType { kCmdRMNear, // RMNEAR 0 :: remove NEAR list kCmdRMMTake, // RMMTAKE 0 :: remove TAKE list kCmdRMFTake, // RMFTAKE 0 :: remove TAKE list - kCmdSetRef, // RETREF :: change reference of sprite to - kCmdBackPt, // BACKPT 0 :: paint sprite onto the background + kCmdSetRef, // RETREF :: change reference of sprite to kCmdWalk, // WALK | :: go close to the sprite or point kCmdReach, // REACH | :: reach the sprite or point with method kCmdCover, // COVER :: cover sprite with sprite -- cgit v1.2.3