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

A Chunk that loops over its code More...

Inheritance diagram for Advanced_Software_Engineering.Verbs.Flow.WhileChunk:
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

 WhileChunk (ValueStorage valueStorage, IValue conditional)
 A For Loop object More...
 
 WhileChunk (ValueStorage valueStorage, IValue conditional, IVerb oneLineVerb)
 Create a new if object More...
 
new void ExecuteVerb ()
 Executes every verb in the chunk 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 Chunk that loops over its code

Constructor & Destructor Documentation

◆ WhileChunk() [1/2]

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

A For Loop object

Parameters
valueStorageThe ValueStorage for increasing and decreasing the stack
conditionalPreferably Value.ValueTypes.BoolValue, weather the loop should continue to execute.

◆ WhileChunk() [2/2]

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

Create a new if object

Parameters
valueStorageThe ValueStorage for increasing and decreasing the stack
conditionalPreferably Value.ValueTypes.BoolValue, weather the loop should continue to execute.
oneLineVerbA verb to execute in a single line. (Probably a bad idea)

Member Function Documentation

◆ ExecuteVerb()

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

Executes every verb in the chunk

Implements Advanced_Software_Engineering.Verbs.Flow.IVerbChunk.


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