The Brain type exposes the following members.
Constructors
Methods
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ReceiveEvent |
Called when an event is received. If a behaviour is waiting
for an event and it matches this type then the waiting thread
is woken up and execution continues.
|
![]() | Start |
Start the brain. It will only run the behaviour if
ShouldRun returns true.
|
![]() | Stop |
Stop running the behaviour.
|
![]() | StopWaitFor |
Stops waiting for an event.
|
![]() | ToString | (Inherited from Object.) |
![]() | WaitFor<(Of <<'(T>)>>)()()()() |
Waits indefinitely for an event of type T.
|
![]() | WaitFor<(Of <<'(T>)>>)(Double) |
Waits for an event of type T. If timeout is reached first, returns null.
|
![]() | WaitFor<(Of <<'(T>)>>)(Func<(Of <<'(T, Boolean>)>>)) |
Waits indefinitely for an event of type T. When an event arrives,
checkEventFunc is called, passing the event. If
checkEventFunc returns true then the event
is returned, otherwise it continues to wait.
|
![]() | WaitFor<(Of <<'(T>)>>)(Func<(Of <<'(T, Boolean>)>>), Double) |
Waits for an event of type T that causes checkEventFunc
to return true. Returns null if timeout is reached first.
|
Properties
Name | Description | |
---|---|---|
![]() | Behaviour |
Gets the behaviour for this Brain.
|
![]() | WaitingForEvent |
Gets a value indicating whether this Brain is waiting for event.
|