SystemActionclassaction.t[981]

The SystemAction class is for actions not affecting the game world but rather acting on the game session, such as SAVE, RESTORE and QUIT.

class SystemAction :   IAction

Superclass Tree   (in declaration order)

SystemAction
        IAction
                Action
                        ReplaceRedirector
                                Redirector
                                        object

Subclass Tree  

SystemAction
        FileOpAction

Global Objects  

About  Again  Brief  Credits  Debug  DebugI  Exits  ExitsColour  ExitsMode  ExtraHints  FullScore  Help  Hints  HintsOff  Instructions  Intro  ListTests  Notify  NotifyOff  NotifyOn  Quit  RecordOff  Restart  Restore  Sample  Score  ScriptOff  Topics  Undo  Verbose  Version  WhereHelp 

Summary of Properties  

includeInUndo  isRepeatable  turnsTaken 

Inherited from IAction :
againRepeatsParse 

Inherited from Action :
actionFailed  allowAll  extraMessageParams  failCheckMsg  isImplicit  oldRoom  parentAction  parentAllowAll  preCond  redirectParent  reportImplicitActions  scopeList  spellingPriority  synthParamID  unhides  verifyObj  wasIlluminated 

Summary of Methods  

afterAction  exec  execCycle  getInputFile  turnSequence 

Inherited from IAction :
execResolvedAction  resolvedObjectsInScope  scoreObjects  setResolvedObjects 

Inherited from Action :
acknowledgeNotifyStatus  addExtraScopeItems  addImplicitTime  advanceTime  announceObject  beforeAction  buildImplicitActionAnnouncement  buildScopeList  checkAction  checkActionPreconditions  commandNotPresent  execAction  execGroup  getAll  getAllUnhidden  getMessageParam  implicitAnnouncement  reportAction  setMessageParam  setMessageParams  spPrefix  spSuffix  synthMessageParam  verify  verifyObjRole  wrapObjectsNP 

Inherited from ReplaceRedirector :
redirect 

Inherited from Redirector :
doInstead  doNested  doOtherAction 

Properties  

includeInUndoOVERRIDDENaction.t[983]

A SystemAction is not normally undo-able

isRepeatableOVERRIDDENaction.t[986]
A SystemAction is not normally repeatable

turnsTakenOVERRIDDENaction.t[1005]
A SystemAction doesn't take any turns (this is a bit belt-and-braces since turnSequence does nothing in any case).

Methods  

afterAction ( )OVERRIDDENaction.t[992]

Since a SystemAction isn't an action in the game world, we don't want it to trigger any after action notifications.

exec (cmd)OVERRIDDENaction.t[1011]
Since this isn't an action within the game world we bypass all the normal pre-action handling and just execute a reduced cycle.

execCycle (cmd)OVERRIDDENaction.t[1018]
There's no before notifications for a SystemAction so we simply execute the action and, if we should define it as repeatable, make a note of it in case the player issues an AGAIN command on the next turn.

getInputFile (prompt, dialogType, fileType, flags)action.t[1052]
Ask for an input file. We call the input manager, which displays the appropriate local file selector dialog. This is used for SystemActions that need a file to act on, such as SAVE, RESTORE and QUIT.

turnSequence ( )OVERRIDDENaction.t[999]
Since a SystemAction isn't an action in the game world, we don't want it to count as a turn, so we don't run any Daemons or Fuses and we don't advance the turn count.

Adv3Lite Library Reference Manual
Generated on 28/03/2016 from adv3Lite version 1.5