summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-22 18:55:31 +0100
committerPacien TRAN-GIRARD2015-11-22 18:55:31 +0100
commit04fa54cd5132aab16104a5dbbccbbdb18243aab6 (patch)
tree63c9bbb0f66a39ddd4d557be1635052d5914965e /src/ch/epfl/maze
parent7009ff652c18a4e387dca4972e570bf1f56387c3 (diff)
downloadmaze-solver-04fa54cd5132aab16104a5dbbccbbdb18243aab6.tar.gz
Access static method via class reference
Diffstat (limited to 'src/ch/epfl/maze')
-rw-r--r--src/ch/epfl/maze/graphics/Animation.java2
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";