Moved many things into the engine and removed the casting from getCreatureObject

This commit is contained in:
Obique
2015-02-22 11:41:54 -06:00
committed by Obique
parent 186cb9affd
commit e754f286a8
16 changed files with 20 additions and 1920 deletions
@@ -1,24 +0,0 @@
package resources.objects.creature;
public enum CreatureDifficulty {
NORMAL (0x00),
ELITE (0x01),
BOSS (0x01);
private int difficulty;
CreatureDifficulty(int difficulty) {
this.difficulty = difficulty;
}
public byte getDifficulty() {
return (byte) difficulty;
}
public static final CreatureDifficulty getForDifficulty(int difficulty) {
for (CreatureDifficulty d : values())
if (d.getDifficulty() == difficulty)
return d;
return NORMAL;
}
}