diff options
Diffstat (limited to 'PunchingBag')
-rw-r--r-- | PunchingBag/src/PunchingBag.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/PunchingBag/src/PunchingBag.java b/PunchingBag/src/PunchingBag.java index 0f08276..bcaf220 100644 --- a/PunchingBag/src/PunchingBag.java +++ b/PunchingBag/src/PunchingBag.java @@ -1,5 +1,6 @@ import javax.swing.event.EventListenerList; +import java.awt.geom.Area; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; @@ -26,6 +27,10 @@ public class PunchingBag implements Runnable { None, Red, Yellow, Green }; + public enum Direction { + Right, Left, Up, Down + }; + // Is there a better class for this? One that it is not a swing class. private EventListenerList buttonListenerList = new EventListenerList(); private EventListenerList ledListenerList = new EventListenerList(); @@ -88,6 +93,26 @@ public class PunchingBag implements Runnable { abstract public void draw(); } + class Text extends Effect { + final String string; + final Area area; + final Direction direction; + final int speed; + + public Text(String string, Area area, Direction direction, int speed) { + this.string = string; + this.area = area; + this.direction = direction; + this.speed = speed; + + } + + public void draw() { + byte[] stringBytes = string.getBytes(); + + } + } + class CircleExpand extends Effect { final int x; final int y; |