The RandomBehaviour type exposes the following members.

Constructors

  NameDescription
Public methodRandomBehaviour
Initializes a new instance of the RandomBehaviour class

Methods

  NameDescription
Public methodAddBehaviour
Adds a behaviour that can be selected randomly.
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 propertyCurrentBehaviour
Gets the behaviour that is currently running.
Public propertyDelay
How long the behaviour will sleep before after each sub-behaviour finishes running.
Public propertyParent
Gets or sets the parent.
(Inherited from Behaviour.)
Public propertyRunCount
The number of behaviours to run from the list. If this is -1 it will run forever, otherwise it decreases until 0.
Public propertyShouldRun
Function that determines whether or not this behaviour should run.
(Inherited from Behaviour.)

See Also