forked from terryyin/com.happyprog.tdgotchi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renaming levels classes to beginner, intermediate, zombie and pro
- Loading branch information
Sebastian Hermida
committed
Apr 6, 2011
1 parent
bab5f5c
commit 871f2b0
Showing
18 changed files
with
183 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package com.happyprog.tdgotchi.level; | ||
|
||
import org.eclipse.swt.graphics.Image; | ||
|
||
import com.happyprog.tdgotchi.scoreboard.LevelManager; | ||
|
||
public class TinyLevelManager implements LevelManager { | ||
|
||
private final Level beginner; | ||
private final Level zombie; | ||
private final Level intermediate; | ||
private final Level pro; | ||
|
||
public TinyLevelManager() { | ||
this(new Beginner(), new Intermediate(), new Pro(), new Zombie()); | ||
} | ||
|
||
public TinyLevelManager(Level beginner, Level intermediate, Level pro, Level zombie) { | ||
this.beginner = beginner; | ||
this.intermediate = intermediate; | ||
this.pro = pro; | ||
this.zombie = zombie; | ||
} | ||
|
||
@Override | ||
public Level getBeginner() { | ||
return beginner; | ||
} | ||
|
||
@Override | ||
public Level getZombie() { | ||
return zombie; | ||
} | ||
|
||
@Override | ||
public Image getBeginnerHealth() { | ||
return beginner.getHealth(); | ||
} | ||
|
||
@Override | ||
public Image getZombieHealth() { | ||
return zombie.getHealth(); | ||
} | ||
|
||
@Override | ||
public Level getIntermediate() { | ||
return intermediate; | ||
} | ||
|
||
@Override | ||
public Image getIntermediateHealth() { | ||
return intermediate.getHealth(); | ||
} | ||
|
||
@Override | ||
public Level getPro() { | ||
return pro; | ||
} | ||
|
||
@Override | ||
public Image getProHealth() { | ||
return pro.getHealth(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.happyprog.tdgotchi.scoreboard; | ||
|
||
import org.eclipse.swt.graphics.Image; | ||
|
||
import com.happyprog.tdgotchi.level.Level; | ||
|
||
public interface LevelManager { | ||
|
||
Level getBeginner(); | ||
|
||
Level getZombie(); | ||
|
||
Level getIntermediate(); | ||
|
||
Level getPro(); | ||
|
||
Image getBeginnerHealth(); | ||
|
||
Image getZombieHealth(); | ||
|
||
Image getIntermediateHealth(); | ||
|
||
Image getProHealth(); | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...happyprog/tdgotchi/level/MoodManager.java → ...prog/tdgotchi/scoreboard/MoodManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.