The RandomWalk type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | RandomWalk | Initializes a new instance of the RandomWalk class |
Methods
Name | Description | |
---|---|---|
![]() | 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 | |
---|---|---|
![]() | AfterWalk |
Gets or sets the func that is called after the npc walks.
If return value is false, behaviour stops.
|
![]() | AllowedZones |
The npc will only move into rooms that have at least one of the zones
specified in this list.
|
![]() | BeforeWalk |
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.
|
![]() | MaxDelay |
Gets or sets the max delay between each walk.
|
![]() | MinDelay |
Gets or sets the minimum delay between each walk.
|
![]() | Parent |
Gets or sets the parent.
(Inherited from Behaviour.) |
![]() | ShouldRun |
Function that determines whether or not this behaviour should run.
(Inherited from Behaviour.) |
![]() | WalkCount |
Gets or sets the walk count, or how many more times the npc will move.
If set to -1, will walk forever.
|