diff options
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event')
-rw-r--r-- | src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java | 8 |
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 | ||