Search in sources :

Example 1 with BookScreen

use of ultima.BookScreen in project ultimate-java by pantinor.

the class ScreenTest method create.

@Override
public void create() {
    Skin skin = new Skin(Gdx.files.internal("assets/skin/uiskin.json"));
    SaveGame sg = new SaveGame();
    try {
        sg.read(Constants.PARTY_SAV_BASE_FILENAME);
    } catch (Exception e) {
        e.printStackTrace();
    }
    Party party = new Party(sg);
    party.getMember(0).getPlayer().mp = 999;
    for (Constants.Spell sp : Constants.Spell.values()) {
        party.getSaveGame().mixtures[sp.ordinal()] = 99;
    }
    sg.reagents = new int[] { 90, 93, 94, 90, 90, 90, 90, 90 };
    // setScreen(new MixtureScreen(null, null, skin, party));
    setScreen(new BookScreen(null, null, skin));
}
Also used : Party(objects.Party) SaveGame(objects.SaveGame) BookScreen(ultima.BookScreen) Constants(ultima.Constants) Skin(com.badlogic.gdx.scenes.scene2d.ui.Skin)

Aggregations

Skin (com.badlogic.gdx.scenes.scene2d.ui.Skin)1 Party (objects.Party)1 SaveGame (objects.SaveGame)1 BookScreen (ultima.BookScreen)1 Constants (ultima.Constants)1