diff options
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java')
-rw-r--r-- | src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java index b7a6ec7..8b9e3fb 100644 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/HeroEvent.java | |||
@@ -33,6 +33,15 @@ public class HeroEvent extends AbstractEvent implements Event { | |||
33 | public void render(Graphics g) | 33 | public void render(Graphics g) |
34 | { | 34 | { |
35 | GameCharacter toDraw = Game.getSaveFile().getParty().getLeader(); | 35 | GameCharacter toDraw = Game.getSaveFile().getParty().getLeader(); |
36 | |||
37 | /* TODO Replace below condition with an instanceof check to | ||
38 | * see if toDraw.getGraphic() is an instance of BlankEventGraphic. | ||
39 | * The current way does not, in fact, work because an EventGraphic | ||
40 | * never be equal to a String. This current way only exists because | ||
41 | * HeroEvent's graphic used to be stored as a filename/offset combo | ||
42 | * instead of as an EventGraphic. | ||
43 | */ | ||
44 | |||
36 | if (!toDraw.getGraphic().equals("blank")) | 45 | if (!toDraw.getGraphic().equals("blank")) |
37 | { | 46 | { |
38 | toDraw.getGraphic().setDirection(direction); | 47 | toDraw.getGraphic().setDirection(direction); |