Test class | debug.t[499]

A Test object can be used to create a series of testing commands in your game, for example:

Test 'foo' ['x me', 'i', 'wear uniform'] [uniform];

Would cause the uniform to be moved into the player character's inventory and then the commands X ME and then I and WEAR UNIFORM to be executed in response to TEST FOO.

`class Test : object`

Superclass Tree (in declaration order)

`Test`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`location reportHolding reportMove testHolding testList testName`

Summary of Methods

`getHolding run`

Properties

`location` | `debug.t[510]`

The location to move the player character to before running the test script

`reportHolding` | `debug.t[528]`

Flag: do we want to report on what items were added to inventory? By default we do.

`reportMove` | `debug.t[516]`

Flag: Do we want to report any change of location by looking around in the new one? By default we will.

`testHolding` | `debug.t[522]`

The objects to move into the player character's inventory before running the test script.

`testList` | `debug.t[504]`

The list commands to be executed when running this test.

`testName` | `debug.t[501]`

The name of this test

Methods

`getHolding ( )` | `debug.t[532]`

Move everything in the testHolding list into the actor's inventory

`run ( )` | `debug.t[550]`

Run this test by passing the commands in testList through Parser.parse().

Adv3Lite Library Reference Manual
Generated on 02/05/2024 from adv3Lite version 2.0