v0.3.4: moved some functionality from Utils in prep for removing it.

This commit is contained in:
Evan Debenham
2016-01-26 15:08:41 -05:00
parent 17bb42f7f7
commit d9d6e45d04
14 changed files with 103 additions and 109 deletions
@@ -20,6 +20,13 @@
*/
package com.shatteredpixel.shatteredpixeldungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.watabou.noosa.Game;
import com.watabou.utils.Bundlable;
import com.watabou.utils.Bundle;
import com.watabou.utils.SystemTime;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
@@ -27,15 +34,6 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.watabou.noosa.Game;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
import com.watabou.utils.Bundlable;
import com.watabou.utils.Bundle;
import com.watabou.utils.SystemTime;
public enum Rankings {
INSTANCE;
@@ -64,7 +62,7 @@ public enum Rankings {
rec.depth = Dungeon.depth;
rec.score = score( win );
String gameFile = Utils.format( DETAILS_FILE, SystemTime.now );
String gameFile = Messages.format( DETAILS_FILE, SystemTime.now );
try {
Dungeon.saveGame( gameFile );
rec.gameFile = gameFile;