Advanced Software Engineering
Advanced_Software_Engineering.Verbs.Flow.IfChunk Class Reference

A simple If Object More...

Inheritance diagram for Advanced_Software_Engineering.Verbs.Flow.IfChunk:
Advanced_Software_Engineering.Verbs.Flow.VerbChunk Advanced_Software_Engineering.Verbs.Flow.IVerbChunk Advanced_Software_Engineering.IVerb Advanced_Software_Engineering.Verbs.Flow.IVerbChunk Advanced_Software_Engineering.IVerb Advanced_Software_Engineering.IVerb Advanced_Software_Engineering.IVerb

Public Member Functions

 IfChunk (ValueStorage valueStorage, IValue conditional)
 Create a new if object More...
 
 IfChunk (ValueStorage valueStorage, IValue conditional, IVerb oneLineVerb)
 Create a new if object More...
 
new void ExecuteVerb ()
 Executes the chunk if the conditional is true More...
 
- Public Member Functions inherited from Advanced_Software_Engineering.Verbs.Flow.VerbChunk
 VerbChunk (List< IVerb > verbs)
 Create a new VerbChunk with verbs in it. More...
 
 VerbChunk ()
 Create an empty VerbChunk More...
 
void AddVerb (IVerb verb)
 Adds a verb to the verb list More...
 
void ExecuteVerb ()
 Executes all of the verbs in order More...
 
IVerb[] GetVerbs ()
 Returns all of the verbs stored More...
 
string GetDescription ()
 Gets a description of every verb More...
 

Detailed Description

A simple If Object

Constructor & Destructor Documentation

◆ IfChunk() [1/2]

Advanced_Software_Engineering.Verbs.Flow.IfChunk.IfChunk ( ValueStorage  valueStorage,
IValue  conditional 
)

Create a new if object

Parameters
valueStorageThe ValueStorage for increasing and decreasing the stack
conditionalPreferably Value.ValueTypes.BoolValue, if the chunk should execute.

◆ IfChunk() [2/2]

Advanced_Software_Engineering.Verbs.Flow.IfChunk.IfChunk ( ValueStorage  valueStorage,
IValue  conditional,
IVerb  oneLineVerb 
)

Create a new if object

Parameters
valueStorageThe ValueStorage for increasing and decreasing the stack
conditionalPreferably Value.ValueTypes.BoolValue, if the chunk should execute.
oneLineVerbA verb to execute in a single line

Member Function Documentation

◆ ExecuteVerb()

new void Advanced_Software_Engineering.Verbs.Flow.IfChunk.ExecuteVerb ( )

Executes the chunk if the conditional is true

Implements Advanced_Software_Engineering.Verbs.Flow.IVerbChunk.


The documentation for this class was generated from the following file: