IAction class | action.t[1088]

An IAction is an Action that doesn't directly act on any objects. At least in this version of the library it works just like the base Action class.

`class IAction : Action`

Superclass Tree (in declaration order)

`IAction`
`Action`
`ReplaceRedirector`
`Redirector`
`object`

Subclass Tree

`IAction`
`LiteralAction`
`MiscConvAction`
`NumericAction`
`SystemAction`
`FileOpAction`
`TopicAction`
`ImplicitConversationAction`

Global Objects

`ClimbDownVague ClimbUpVague Continue FiatLux GetOut GoBack Goodbye GoSomewhere Hello Inventory Jump JumpOffIntransitive Lie Listen Look LookHere Sit Sleep Smell Stand Think VagueTravel Wait WhereAmI WhereGo WhoAmI Yell`

Summary of Properties

`againRepeatsParse`

Inherited from `Action` :
`actionFailed advanceOnFailure allowAll extraMessageParams failCheckMsg failedActionCountsAsTurn implicitTimeTaken includeInUndo isConversational isImplicit isRepeatable oldRoom parentAction parentAllowAll preCond redirectParent reportImplicitActions scopeList spellingPriority synthParamID timeTaken turnsTaken unhides verifyObj wasIlluminated`

``

``

Summary of Methods

`execCycle execResolvedAction resolvedObjectsInScope scoreObjects setResolvedObjects`

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

Inherited from `ReplaceRedirector` :
`redirect`

Inherited from `Redirector` :
`doInstead doNested doOtherAction`

Properties

`againRepeatsParse` OVERRIDDEN | `action.t[1093]`

There's usually no point in parsing an IAction again when it's repeated since there are no objects to have changed.

Methods

`execCycle (cmd)`OVERRIDDEN | `action.t[1141]`

Otherwise, display the normal output from this action

`execResolvedAction ( )` | `action.t[1121]`

These methods are provided to allow an IAction to be invoked as an implicit action.

`resolvedObjectsInScope ( )` | `action.t[1173]`

An IAction has no resolved objects, so we simply return true to indicate that scope is not a problem.

`scoreObjects (cmd, role, lst)`OVERRIDDEN | `action.t[1101]`

For an IAction there's no point in trying to score anything but the Actor object; attempting to score objects via their verify properties will cause a run-time error, since IActions don't define verify properties and the like.

`setResolvedObjects ([objs])` | `action.t[1167]`

Nothing to do here.

Adv3Lite Library Reference Manual
Generated on 25/04/2024 from adv3Lite version 2.0