The RandomBehaviour type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | RandomBehaviour | Initializes a new instance of the RandomBehaviour class |
Methods
Name | Description | |
---|---|---|
![]() | AddBehaviour |
Adds a behaviour that can be selected randomly.
|
![]() | AlwaysRun |
Convenience function. Set ShouldRun = AlwaysRun to make
the behaviour always run.
(Inherited from Behaviour.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | NeverRun |
Convenience function. Set ShouldRun = NeverRun to make
it so the behaviour never runs.
(Inherited from Behaviour.) |
![]() | OnStop | (Overrides Behaviour..::..OnStop()()()().) |
![]() | Run | (Overrides Behaviour..::..Run()()()().) |
![]() | Sleep |
Causes this behaviour to pause for the specified number of seconds.
(Inherited from Behaviour.) |
![]() | ToString | (Inherited from Object.) |
![]() | WaitFor<(Of <<'(T>)>>)()()()() | (Inherited from Behaviour.) |
![]() | WaitFor<(Of <<'(T>)>>)(Double) | (Inherited from Behaviour.) |
![]() | WaitFor<(Of <<'(T>)>>)(Func<(Of <<'(T, Boolean>)>>)) | (Inherited from Behaviour.) |
![]() | WaitFor<(Of <<'(T>)>>)(Func<(Of <<'(T, Boolean>)>>), Double) | (Inherited from Behaviour.) |
Fields
Properties
Name | Description | |
---|---|---|
![]() | CurrentBehaviour |
Gets the behaviour that is currently running.
|
![]() | Delay |
How long the behaviour will sleep before after each
sub-behaviour finishes running.
|
![]() | Parent |
Gets or sets the parent.
(Inherited from Behaviour.) |
![]() | RunCount |
The number of behaviours to run from the list.
If this is -1 it will run forever, otherwise it decreases until 0.
|
![]() | ShouldRun |
Function that determines whether or not this behaviour should run.
(Inherited from Behaviour.) |