From 6b81ce2d2ccc00389d8bc1909adb1380ed4c32d5 Mon Sep 17 00:00:00 2001 From: yugecin Date: Tue, 27 Sep 2016 19:45:08 +0200 Subject: [PATCH] moverfactory toStrings --- .../opsudance/movers/factories/CircleMoverFactory.java | 5 +++++ .../opsudance/movers/factories/HalfCircleMoverFactory.java | 5 +++++ .../opsudance/movers/factories/HalfEllipseMoverFactory.java | 5 +++++ .../movers/factories/HalfLowEllipseMoverFactory.java | 5 +++++ src/yugecin/opsudance/movers/factories/JumpMoverFactory.java | 5 +++++ .../opsudance/movers/factories/LinearMoverFactory.java | 5 +++++ .../opsudance/movers/factories/QuartCircleMoverFactory.java | 5 +++++ 7 files changed, 35 insertions(+) diff --git a/src/yugecin/opsudance/movers/factories/CircleMoverFactory.java b/src/yugecin/opsudance/movers/factories/CircleMoverFactory.java index 393d95ec..b1fac5a9 100644 --- a/src/yugecin/opsudance/movers/factories/CircleMoverFactory.java +++ b/src/yugecin/opsudance/movers/factories/CircleMoverFactory.java @@ -28,4 +28,9 @@ public class CircleMoverFactory implements MoverFactory { return new CircleMover(start, end, dir); } + @Override + public String toString() { + return "Circle"; + } + } diff --git a/src/yugecin/opsudance/movers/factories/HalfCircleMoverFactory.java b/src/yugecin/opsudance/movers/factories/HalfCircleMoverFactory.java index 656e2f00..4cc4730f 100644 --- a/src/yugecin/opsudance/movers/factories/HalfCircleMoverFactory.java +++ b/src/yugecin/opsudance/movers/factories/HalfCircleMoverFactory.java @@ -28,4 +28,9 @@ public class HalfCircleMoverFactory implements MoverFactory { return new HalfCircleMover(start, end, dir); } + @Override + public String toString() { + return "Half circle"; + } + } diff --git a/src/yugecin/opsudance/movers/factories/HalfEllipseMoverFactory.java b/src/yugecin/opsudance/movers/factories/HalfEllipseMoverFactory.java index c1d4c970..544ecbfc 100644 --- a/src/yugecin/opsudance/movers/factories/HalfEllipseMoverFactory.java +++ b/src/yugecin/opsudance/movers/factories/HalfEllipseMoverFactory.java @@ -28,4 +28,9 @@ public class HalfEllipseMoverFactory implements MoverFactory { return new HalfEllipseMover(start, end, dir); } + @Override + public String toString() { + return "Half ellipse"; + } + } diff --git a/src/yugecin/opsudance/movers/factories/HalfLowEllipseMoverFactory.java b/src/yugecin/opsudance/movers/factories/HalfLowEllipseMoverFactory.java index f5c1a2f5..0779ecd8 100644 --- a/src/yugecin/opsudance/movers/factories/HalfLowEllipseMoverFactory.java +++ b/src/yugecin/opsudance/movers/factories/HalfLowEllipseMoverFactory.java @@ -30,4 +30,9 @@ public class HalfLowEllipseMoverFactory implements MoverFactory { return m; } + @Override + public String toString() { + return "Half low ellipse"; + } + } diff --git a/src/yugecin/opsudance/movers/factories/JumpMoverFactory.java b/src/yugecin/opsudance/movers/factories/JumpMoverFactory.java index 056d3236..429d166c 100644 --- a/src/yugecin/opsudance/movers/factories/JumpMoverFactory.java +++ b/src/yugecin/opsudance/movers/factories/JumpMoverFactory.java @@ -28,4 +28,9 @@ public class JumpMoverFactory implements MoverFactory { return new JumpMover(start, end, dir); } + @Override + public String toString() { + return "Jump"; + } + } diff --git a/src/yugecin/opsudance/movers/factories/LinearMoverFactory.java b/src/yugecin/opsudance/movers/factories/LinearMoverFactory.java index 717538e4..6e042ecd 100644 --- a/src/yugecin/opsudance/movers/factories/LinearMoverFactory.java +++ b/src/yugecin/opsudance/movers/factories/LinearMoverFactory.java @@ -28,4 +28,9 @@ public class LinearMoverFactory implements MoverFactory { return new LinearMover(start, end, dir); } + @Override + public String toString() { + return "Linear"; + } + } diff --git a/src/yugecin/opsudance/movers/factories/QuartCircleMoverFactory.java b/src/yugecin/opsudance/movers/factories/QuartCircleMoverFactory.java index aa51a87d..45df3b3e 100644 --- a/src/yugecin/opsudance/movers/factories/QuartCircleMoverFactory.java +++ b/src/yugecin/opsudance/movers/factories/QuartCircleMoverFactory.java @@ -28,4 +28,9 @@ public class QuartCircleMoverFactory implements MoverFactory { return new QuartCircleMover(start, end, dir); } + @Override + public String toString() { + return "1/4th circle"; + } + }