Organised files into folders

Moved some files around
This commit is contained in:
Lukasz Baldyga committed 2020-11-28 11:11:22 +00:00
1 parent 3708642e35
commit bd23d9e503
17 files changed
+20 -20

No files matched your search

@@ -74,21 +74,21 @@
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
</Compile> </Compile>
<Compile Include="Verbs\DrawingVerbs\Circle.cs" /> <Compile Include="Verbs\DrawingVerbs\Shape\Circle.cs" />
<Compile Include="Verbs\DrawingVerbs\Clear.cs" /> <Compile Include="Verbs\DrawingVerbs\Actions\Clear.cs" />
<Compile Include="Verbs\DrawingVerbs\Dot.cs" /> <Compile Include="Verbs\DrawingVerbs\Shape\Dot.cs" />
<Compile Include="Verbs\DrawingVerbs\DrawLines.cs" /> <Compile Include="Verbs\DrawingVerbs\Actions\DrawLines.cs" />
<Compile Include="Verbs\DrawingVerbs\DrawTo.cs" /> <Compile Include="Verbs\DrawingVerbs\Shape\DrawTo.cs" />
<Compile Include="Verbs\DrawingVerbs\Fill.cs" /> <Compile Include="Verbs\DrawingVerbs\Color\Fill.cs" />
<Compile Include="Verbs\DrawingVerbs\FillColor.cs" /> <Compile Include="Verbs\DrawingVerbs\Color\FillColor.cs" />
<Compile Include="Verbs\DrawingVerbs\MoveTo.cs" /> <Compile Include="Verbs\DrawingVerbs\Shape\MoveTo.cs" />
<Compile Include="Verbs\DrawingVerbs\PenColor.cs" /> <Compile Include="Verbs\DrawingVerbs\Color\PenColor.cs" />
<Compile Include="Verbs\DrawingVerbs\Quadrilateral.cs" /> <Compile Include="Verbs\DrawingVerbs\Shape\Quadrilateral.cs" />
<Compile Include="Verbs\DrawingVerbs\Rectangle.cs" /> <Compile Include="Verbs\DrawingVerbs\Shape\Rectangle.cs" />
<Compile Include="Verbs\DrawingVerbs\RegularPolygon.cs" /> <Compile Include="Verbs\DrawingVerbs\Shape\RegularPolygon.cs" />
<Compile Include="Verbs\DrawingVerbs\ResetPen.cs" /> <Compile Include="Verbs\DrawingVerbs\Actions\ResetPen.cs" />
<Compile Include="Verbs\DrawingVerbs\Square.cs" /> <Compile Include="Verbs\DrawingVerbs\Shape\Square.cs" />
<Compile Include="Verbs\DrawingVerbs\Triangle.cs" /> <Compile Include="Verbs\DrawingVerbs\Shape\Triangle.cs" />
<Compile Include="Verbs\Value\ValueObjects\PointValue.cs" /> <Compile Include="Verbs\Value\ValueObjects\PointValue.cs" />
<Compile Include="Verbs\Value\ValueTypes\ExpressionValue.cs" /> <Compile Include="Verbs\Value\ValueTypes\ExpressionValue.cs" />
<Compile Include="Verbs\Value\DeclareVariable.cs" /> <Compile Include="Verbs\Value\DeclareVariable.cs" />
@@ -7,16 +7,16 @@ namespace Advanced_Software_Engineering.Verbs.Value.ValueObjects {
private IValue x; private IValue x;
private IValue y; private IValue y;
public PointValue(int x, int y) {
this.x = new IntValue(x);
this.y = new IntValue(y);
}
public PointValue(IValue x, IValue y) { public PointValue(IValue x, IValue y) {
this.x = x; this.x = x;
this.y = y; this.y = y;
} }
public PointValue(Drawer drawer, string parameter1, string parameter2) {
x = ValueFactory.CreateValue(drawer, parameter1);
y = ValueFactory.CreateValue(drawer, parameter2);
}
public PointValue(string parameter1, string parameter2) { public PointValue(string parameter1, string parameter2) {
x = ValueFactory.CreateValue(parameter1, "int"); x = ValueFactory.CreateValue(parameter1, "int");
y = ValueFactory.CreateValue(parameter2, "int"); y = ValueFactory.CreateValue(parameter2, "int");