C# Class TreeSharp.DecoratorContinue

A decorator that allows you to execute code only if some condition is met. It does not 'break' the current tree if the condition fails, or children fail. This is useful for "if I need to, go ahead, otherwise, ignore" in sequences. It can be thought of as an optional execution.
Created 1/13/2011.
Inheritance: Decorator
Mostra file Open project: lances101/BoringHeroes

Public Methods

Method Description
DecoratorContinue ( CanRunDecoratorDelegate func, Composite decorated ) : System.Collections.Generic
DecoratorContinue ( Composite child ) : System.Collections.Generic
Execute ( object context ) : IEnumerable

Private Methods

Method Description
GetContinuationStatus ( ) : RunStatus

Method Details

DecoratorContinue() public method

public DecoratorContinue ( CanRunDecoratorDelegate func, Composite decorated ) : System.Collections.Generic
func CanRunDecoratorDelegate
decorated Composite
return System.Collections.Generic

DecoratorContinue() public method

public DecoratorContinue ( Composite child ) : System.Collections.Generic
child Composite
return System.Collections.Generic

Execute() public method

public Execute ( object context ) : IEnumerable
context object
return IEnumerable