Private
Public Access
Added MethodChunk
This commit is contained in:
1 parent
a1b3240d3a
commit
92566266ee
2 files changed
+51
No files matched your search
+1
@@ -93,6 +93,7 @@
|
||||
<Compile Include="Verbs\DrawingVerbs\Shape\Square.cs" />
|
||||
<Compile Include="Verbs\DrawingVerbs\Shape\Triangle.cs" />
|
||||
<Compile Include="Verbs\Flow\IfChunk.cs" />
|
||||
<Compile Include="Verbs\Flow\MethodChunk.cs" />
|
||||
<Compile Include="Verbs\Value\ValueObjects\PointValue.cs" />
|
||||
<Compile Include="Verbs\Value\ValueStorage.cs" />
|
||||
<Compile Include="Verbs\Value\ValueTypes\ComparisonValue.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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user