summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-01-27 14:34:24 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-01-27 14:34:24 -0500
commit9b87de6625fd152cd69fbbe402de054cf1314a6e (patch)
tree4c3a63d3009e2adbd0855c36b237afcc2e936aa7 /src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java
parent9ca53b553cfaf488f7e8e678721bf9e655fa377e (diff)
downloadfourpuzzle-9b87de6625fd152cd69fbbe402de054cf1314a6e.tar.gz
fourpuzzle-9b87de6625fd152cd69fbbe402de054cf1314a6e.tar.bz2
fourpuzzle-9b87de6625fd152cd69fbbe402de054cf1314a6e.zip
Converted GameCharacter's graphic store method
Previously, GameCharacter (HeroEvent's backend) stored it's graphic as a graphic/offset combination. However, the EventGraphic class is the correct way to store it.
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java')
-rw-r--r--src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java index 6e8c359..d488e7d 100644 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java
@@ -66,14 +66,12 @@ public class HeroEvent implements Event {
66 } 66 }
67 } 67 }
68 68
69 /* TODO Change the specification of GameCharacter
70 * to require an EventGraphic instead of a graphic name
71 * and offset
72 */
73 GameCharacter toDraw = Game.getSaveFile().getParty().getLeader(); 69 GameCharacter toDraw = Game.getSaveFile().getParty().getLeader();
74 if (!toDraw.getGraphic().equals("blank")) 70 if (!toDraw.getGraphic().equals("blank"))
75 { 71 {
76 g.drawImage(CharSet.getCharSet(toDraw.getGraphic()).getImage(toDraw.getGraphicOffset(), direction, animationStep), x, y, null); 72 toDraw.getGraphic().setDirection(direction);
73 toDraw.getGraphic().setAnimationStep(animationStep);
74 g.drawImage(toDraw.getGraphic().getImage(), x, y, null);
77 } 75 }
78 } 76 }
79 77