From 3c297e080145cac7be4badd3b1cd89928da73d9a Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 7 Feb 2009 18:04:40 -0500 Subject: Removed unnessecary functions from PossibleEvent --- .../gamestate/mapview/event/PossibleEvent.java | 46 ++++------------------ 1 file changed, 8 insertions(+), 38 deletions(-) diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/PossibleEvent.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/PossibleEvent.java index 9deb0b1..931c6ca 100644 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/PossibleEvent.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/PossibleEvent.java @@ -26,8 +26,8 @@ public class PossibleEvent { private MovementType movement; private EventCallTime calltime; private EventCall callback; - private ArrayList preconditions = new ArrayList(); + private ArrayList preconditions = new ArrayList(); private Direction direction = Direction.South; private int animationStep = 1; @@ -98,7 +98,7 @@ public class PossibleEvent { } private boolean aSLC = false; - EventGraphic getGraphic() + public EventGraphic getGraphic() { if (animation.isAlwaysStepping()) { @@ -119,41 +119,21 @@ public class PossibleEvent { return graphic; } - void setGraphic(EventGraphic graphic) - { - this.graphic = graphic; - } - - Layer getLayer() + public Layer getLayer() { return layer; } - void setLayer(Layer layer) - { - this.layer = layer; - } - - AnimationType getAnimation() + public AnimationType getAnimation() { return animation; } - void setAnimation(AnimationType animation) - { - this.animation = animation; - } - - MovementType getMovement() + public MovementType getMovement() { return movement; } - void setMovement(MovementType movement) - { - this.movement = movement; - } - Direction getDirection() { return direction; @@ -201,29 +181,19 @@ public class PossibleEvent { preconditions.add(precondition); } - ArrayList getPreconditions() + public ArrayList getPreconditions() { return preconditions; } - EventCall getCallback() + public EventCall getCallback() { return callback; } - - void setCallback(EventCall callback) - { - this.callback = callback; - } - EventCallTime getCalltime() + public EventCallTime getCalltime() { return calltime; } - - void setCalltime(EventCallTime calltime) - { - this.calltime = calltime; - } } \ No newline at end of file -- cgit 1.4.1