The RandomWalk type exposes the following members.

Constructors

  NameDescription
Public methodRandomWalk
Initializes a new instance of the RandomWalk class

Methods

  NameDescription
Public methodAlwaysRun
Convenience function. Set ShouldRun = AlwaysRun to make the behaviour always run.
(Inherited from Behaviour.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodNeverRun
Convenience function. Set ShouldRun = NeverRun to make it so the behaviour never runs.
(Inherited from Behaviour.)
Public methodOnStop (Overrides Behaviour..::..OnStop()()()().)
Public methodRun (Overrides Behaviour..::..Run()()()().)
Protected methodSleep
Causes this behaviour to pause for the specified number of seconds.
(Inherited from Behaviour.)
Public methodToString (Inherited from Object.)
Public methodWaitFor<(Of <<'(T>)>>)()()()() (Inherited from Behaviour.)
Public methodWaitFor<(Of <<'(T>)>>)(Double) (Inherited from Behaviour.)
Public methodWaitFor<(Of <<'(T>)>>)(Func<(Of <<'(T, Boolean>)>>)) (Inherited from Behaviour.)
Public methodWaitFor<(Of <<'(T>)>>)(Func<(Of <<'(T, Boolean>)>>), Double) (Inherited from Behaviour.)

Fields

  NameDescription
Protected fieldnpc (Inherited from Behaviour.)

Properties

  NameDescription
Public propertyAfterWalk
Gets or sets the func that is called after the npc walks. If return value is false, behaviour stops.
Public propertyAllowedZones
The npc will only move into rooms that have at least one of the zones specified in this list.
Public propertyBeforeWalk
Gets or sets the func that is called before the npc walks. The argument is the path of the next room. If return value is false, behaviour stops.
Public propertyMaxDelay
Gets or sets the max delay between each walk.
Public propertyMinDelay
Gets or sets the minimum delay between each walk.
Public propertyParent
Gets or sets the parent.
(Inherited from Behaviour.)
Public propertyShouldRun
Function that determines whether or not this behaviour should run.
(Inherited from Behaviour.)
Public propertyWalkCount
Gets or sets the walk count, or how many more times the npc will move. If set to -1, will walk forever.

See Also