From 92566266eecb249471f71c4a8a0835bb6df46759 Mon Sep 17 00:00:00 2001 From: Lukasz Baldyga Date: Tue, 1 Dec 2020 21:49:41 +0000 Subject: [PATCH] Added MethodChunk --- .../Advanced Software Engineering.csproj | 1 + .../Verbs/Flow/MethodChunk.cs | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 Advanced Software Engineering/Advanced Software Engineering/Verbs/Flow/MethodChunk.cs 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(); + } + } +}