diff options
Diffstat (limited to 'src/ch/epfl/maze/graphics')
-rw-r--r-- | src/ch/epfl/maze/graphics/Animation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/maze/graphics/Animation.java b/src/ch/epfl/maze/graphics/Animation.java index cd5fa38..ce80c78 100644 --- a/src/ch/epfl/maze/graphics/Animation.java +++ b/src/ch/epfl/maze/graphics/Animation.java | |||
@@ -229,7 +229,7 @@ public final class Animation { | |||
229 | private BufferedImage loadImage(Animal animal) { | 229 | private BufferedImage loadImage(Animal animal) { |
230 | // path = "img/superclass/class.png" | 230 | // path = "img/superclass/class.png" |
231 | String superClassName = animal.getClass().getSuperclass().getSimpleName(); | 231 | String superClassName = animal.getClass().getSuperclass().getSimpleName(); |
232 | String[] superClassComponents = this.splitCamelCase(superClassName); | 232 | String[] superClassComponents = Animation.splitCamelCase(superClassName); |
233 | String folder = superClassComponents[superClassComponents.length - 1]; | 233 | String folder = superClassComponents[superClassComponents.length - 1]; |
234 | String file = animal.getClass().getSimpleName(); | 234 | String file = animal.getClass().getSimpleName(); |
235 | String path = "img/" + folder + File.separator + file + ".png"; | 235 | String path = "img/" + folder + File.separator + file + ".png"; |