Browse code

Use the new id of stairs

Pierre Marijon authored on 03/05/2015 12:14:15
Showing 2 changed files
... ...
@@ -203,18 +203,15 @@ public abstract class AbstractStartGameTrigger implements IStartGameTrigger {
203 203
         if ("blue_plate".equals(type)) {
204 204
             return createPlate(tile, game, x, y, l, layer, ColorType.blue, false);
205 205
         }
206
-        if ("stairs_close_up".equals(type)) {
206
+        if ("dark_stairs_close_up".equals(type)) {
207 207
             return createStairs(tile, game, x, y, l, layer, Position.getUp());
208 208
         }
209
-        if ("stairs_close_down".equals(type)) {
209
+        if ("dark_stairs_close_down".equals(type)) {
210 210
             return createStairs(tile, game, x, y, l, layer, Position.getDown());
211 211
         }
212
-        if ("stairs_close_left".equals(type)) {
212
+        if ("dark_stairs_close_left".equals(type)) {
213 213
             return createStairs(tile, game, x, y, l, layer, Position.getLeft());
214 214
         }
215
-        if ("stairs_close_right".equals(type)) {
216
-            return createStairs(tile, game, x, y, l, layer, Position.getRight());
217
-        }
218 215
         if ("low_stairs".equals(type)) {
219 216
             return createLowStairs(tile, game, x, y, l, layer);
220 217
         }
... ...
@@ -74,23 +74,22 @@ public class Stairs extends GameObject {
74 74
 
75 75
         if (type == MoveType.OPEN) {
76 76
             if (dir.equals(Position.getUp())) {
77
-                updatable.startAnimation(this.animation.getAnimationByName("stairs_up_open"), PlayMode.ONCE);
77
+                updatable.startAnimation(this.animation.getAnimationByName("dark_stairs_up_open"), PlayMode.ONCE);
78 78
             } else if (dir.equals(Position.getDown())) {
79
-                updatable.startAnimation(this.animation.getAnimationByName("stairs_down_open"), PlayMode.ONCE);
79
+                updatable.startAnimation(this.animation.getAnimationByName("dark_stairs_down_open"), PlayMode.ONCE);
80 80
             } else if (dir.equals(Position.getLeft())) {
81
-                updatable.startAnimation(this.animation.getAnimationByName("stairs_left_open"), PlayMode.ONCE);
81
+                updatable.startAnimation(this.animation.getAnimationByName("dark_stairs_left_open"), PlayMode.ONCE);
82 82
             } else if (dir.equals(Position.getRight())) {
83
-                updatable.startAnimation(this.animation.getAnimationByName("stairs_right_open"), PlayMode.ONCE);
83
+                updatable.startAnimation(this.animation.getAnimationByName("dark_stairs_right_open"), PlayMode.ONCE);
84 84
             }
85 85
         } else if (type == MoveType.CLOSE) {
86 86
             if (dir.equals(Position.getUp())) {
87
-                updatable.startAnimation(this.animation.getAnimationByName("stairs_up_close"), PlayMode.ONCE);
87
+                updatable.startAnimation(this.animation.getAnimationByName("dark_stairs_up_close"), PlayMode.ONCE);
88 88
             } else if (dir.equals(Position.getDown())) {
89
-                updatable.startAnimation(this.animation.getAnimationByName("stairs_down_close"), PlayMode.ONCE);
89
+                updatable.startAnimation(this.animation.getAnimationByName("dark_stairs_down_close"), PlayMode.ONCE);
90 90
             } else if (dir.equals(Position.getLeft())) {
91
-                updatable.startAnimation(this.animation.getAnimationByName("stairs_left_close"), PlayMode.ONCE);
91
+                updatable.startAnimation(this.animation.getAnimationByName("dark_stairs_left_close"), PlayMode.ONCE);
92 92
             } else if (dir.equals(Position.getRight())) {
93
-                updatable.startAnimation(this.animation.getAnimationByName("stairs_right_close"), PlayMode.ONCE);
94 93
             }
95 94
         }
96 95