Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

Cine::FWScript Class Reference

#include <script.h>

Inheritance diagram for Cine::FWScript:

Cine::OSScript

List of all members.


Detailed Description

Future Wars script, prcLinkedListStruct replacement.

Todo:
Rewrite _globalVars initialization

Definition at line 139 of file script.h.


Public Member Functions

int execute ()
 Execute script.
 FWScript (const FWScript &src)
 Copy constructor.
 FWScript (const RawScript &script, int16 index)
 Contructor for global scripts.
void save (Common::OutSaveFile &fHandle) const
 Save script to savefile.

Static Public Member Functions

static void setupTable ()

Public Attributes

int16 _index
 Index in script table.

Protected Member Functions

 FWScript (const FWScript &src, FWScriptInfo *info)
 Copy constructor for derived classes.
 FWScript (RawObjectScript &script, int16 index, FWScriptInfo *info)
 Constructor for object scripts in derived classes.
 FWScript (const RawScript &script, int16 index, FWScriptInfo *info)
 Contructor for global scripts in derived classes.
byte getNextByte ()
 Read next byte from bytecode.
const char * getNextString ()
 Read next string from bytecode.
uint16 getNextWord ()
 Read next word from bytecode.
void load (const ScriptVars &labels, const ScriptVars &local, uint16 compare, uint16 pos)
 Restore script state from savefile.
int o1_addObjectParam ()
int o1_addSpriteFilledToBgList ()
int o1_addToBgList ()
int o1_addVar ()
int o1_allowPlayerInput ()
int o1_blitAndFade ()
int o1_break ()
 Pause script.
int o1_changeDataDisk ()
int o1_checkCollision ()
int o1_closePart ()
int o1_compareGlobalVar ()
int o1_compareObjectParam ()
int o1_compareVar ()
int o1_declareFunctionName ()
int o1_disableSystemMenu ()
int o1_disallowPlayerInput ()
int o1_displayBackground ()
int o1_divObjectParam ()
int o1_divVar ()
int o1_endGlobalScript ()
int o1_endScript ()
 Terminate script.
int o1_fadeOutMusic ()
int o1_fadeToBlack ()
int o1_freePartRange ()
int o1_getObjectParam ()
int o1_getZoneDataEntry ()
int o1_goto ()
int o1_gotoIfDiff ()
int o1_gotoIfEqu ()
int o1_gotoIfInf ()
int o1_gotoIfInfEqu ()
int o1_gotoIfSup ()
int o1_gotoIfSupEqu ()
int o1_initializeZoneData ()
int o1_label ()
int o1_loadAnim ()
int o1_loadBg ()
int o1_loadCt ()
 Load collision table data.
int o1_loadGlobalVar ()
int o1_loadMask0 ()
int o1_loadMask1 ()
int o1_loadMask4 ()
int o1_loadMask5 ()
int o1_loadMusic ()
int o1_loadNewPrcName ()
int o1_loadPart ()
int o1_loadVar ()
int o1_loop ()
int o1_message ()
int o1_modifyObjectParam ()
int o1_modifyObjectParam2 ()
int o1_mulObjectParam ()
int o1_mulVar ()
int o1_op1B ()
int o1_op71 ()
int o1_op72 ()
int o1_op73 ()
int o1_palRotate ()
int o1_playMusic ()
int o1_playSample ()
int o1_removeLabel ()
int o1_requestCheckPendingDataLoad ()
int o1_setDefaultMenuBgColor ()
int o1_setPlayerCommandPosY ()
int o1_setScreenDimensions ()
int o1_setupObject ()
int o1_setZoneDataEntry ()
int o1_startGlobalScript ()
int o1_stopSample ()
int o1_subObjectParam ()
int o1_subVar ()
int o1_transformPaletteRange ()
int o1_unloadAllMasks ()
int o1_unloadMask0 ()
int o1_unloadMask1 ()
int o1_unloadMask4 ()
int o1_unloadMask5 ()
int o2_addBackground ()
int o2_addGfxElementType20 ()
int o2_addGfxElementType21 ()
int o2_addSeqListElement ()
int o2_gotoIfDiffNearest ()
int o2_gotoIfEquNearest ()
int o2_gotoIfInfEquNearest ()
int o2_gotoIfInfNearest ()
int o2_gotoIfSupEquNearest ()
int o2_gotoIfSupNearest ()
int o2_isSeqRunning ()
int o2_loadAbs ()
int o2_loadBg ()
int o2_loadCt ()
 Load collision table data.
int o2_loadMask22 ()
int o2_loadPart ()
int o2_modifySeqListElement ()
int o2_op81 ()
int o2_op8D ()
int o2_op9B ()
int o2_op9C ()
int o2_op9F ()
int o2_playSample ()
int o2_playSampleAlt ()
int o2_removeBackground ()
int o2_removeGfxElementType20 ()
int o2_removeGfxElementType21 ()
int o2_removeSeq ()
int o2_setAdditionalBgVScroll ()
int o2_startObjectScript ()
int o2_stopObjectScript ()
int o2_unloadMask22 ()
int o2_useBgScroll ()
int o2_wasZoneChecked ()

Static Protected Attributes

static unsigned int _numOpcodes = 0
static const Opcode * _opcodeTable = 0

Private Attributes

uint16 _compare
 Last compare result.
ScriptVars_globalVars
 Global variables reference.
FWScriptInfo_info
 Script info.
ScriptVars _labels
 Current script labels.
uint16 _line
 Current opcode index in bytecode for debugging.
ScriptVars _localVars
 Local script variables.
uint16 _pos
 Current position in script.
const RawScript_script
 Script bytecode reference.

Friends

class FWScriptInfo
class OSScript

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index