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
Afficher le fichier Open project: lances101/BoringHeroes

Méthodes publiques

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

Private Methods

Méthode Description
GetContinuationStatus ( ) : RunStatus

Method Details

DecoratorContinue() public méthode

public DecoratorContinue ( CanRunDecoratorDelegate func, Composite decorated ) : System.Collections.Generic
func CanRunDecoratorDelegate
decorated Composite
Résultat System.Collections.Generic

DecoratorContinue() public méthode

public DecoratorContinue ( Composite child ) : System.Collections.Generic
child Composite
Résultat System.Collections.Generic

Execute() public méthode

public Execute ( object context ) : IEnumerable
context object
Résultat IEnumerable