diff --git a/Advanced Software Engineering/Advanced Software Engineering/Advanced Software Engineering.csproj b/Advanced Software Engineering/Advanced Software Engineering/Advanced Software Engineering.csproj index a1ac162..128acbf 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Advanced Software Engineering.csproj +++ b/Advanced Software Engineering/Advanced Software Engineering/Advanced Software Engineering.csproj @@ -93,6 +93,7 @@ + diff --git a/Advanced Software Engineering/Advanced Software Engineering/Verbs/Flow/MethodChunk.cs b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Flow/MethodChunk.cs new file mode 100644 index 0000000..2443090 --- /dev/null +++ b/Advanced Software Engineering/Advanced Software Engineering/Verbs/Flow/MethodChunk.cs @@ -0,0 +1,50 @@ +using Advanced_Software_Engineering.Verbs.Value; +using Advanced_Software_Engineering.Verbs.Value.ValueTypes; +using System.Drawing; + +namespace Advanced_Software_Engineering.Verbs.Flow { + public class MethodChunk : VerbChunk, IVerb, IValue { + + ValueStorage valueStorage; + VariableValue[] variableValues; + + public MethodChunk(VariableValue[] variableValues, ValueStorage valueStorage) : base() { + this.valueStorage = valueStorage; + this.variableValues = variableValues; + } + + public new void ExecuteVerb() { + valueStorage.IncreaseStack(); + base.ExecuteVerb(); + valueStorage.DecreaseStack(); + } + + public IValue Clone() { + throw new System.NotImplementedException(); + } + + public string GetOriginalType() { + throw new System.NotImplementedException(); + } + + public bool isInitialised() { + throw new System.NotImplementedException(); + } + + public bool ToBool() { + throw new System.NotImplementedException(); + } + + public Color ToColor() { + throw new System.NotImplementedException(); + } + + public double ToDouble() { + throw new System.NotImplementedException(); + } + + public int ToInt() { + throw new System.NotImplementedException(); + } + } +}