Java 类org.newdawn.slick.SavedState 实例源码

项目:trashjam2017    文件:SavedStateTest.java   
/**
 * @see org.newdawn.slick.Game#init(org.newdawn.slick.GameContainer)
 */
public void init(GameContainer container) throws SlickException {
    state = new SavedState("testdata");
    nameValue = state.getString("name","DefaultName");
    ageValue = (int) state.getNumber("age",64);

    name = new TextField(container,container.getDefaultFont(),100,100,300,20,this);
    age = new TextField(container,container.getDefaultFont(),100,150,201,20,this);
}
项目:Progetto-C    文件:SavedStateTest.java   
/**
 * @see org.newdawn.slick.Game#init(org.newdawn.slick.GameContainer)
 */
public void init(GameContainer container) throws SlickException {
    state = new SavedState("testdata");
    nameValue = state.getString("name","DefaultName");
    ageValue = (int) state.getNumber("age",64);

    name = new TextField(container,container.getDefaultFont(),100,100,300,20,this);
    age = new TextField(container,container.getDefaultFont(),100,150,201,20,this);
}
项目:BaseClient    文件:SavedStateTest.java   
/**
 * @see org.newdawn.slick.Game#init(org.newdawn.slick.GameContainer)
 */
public void init(GameContainer container) throws SlickException {
    state = new SavedState("testdata");
    nameValue = state.getString("name","DefaultName");
    ageValue = (int) state.getNumber("age",64);

    name = new TextField(container,container.getDefaultFont(),100,100,300,20,this);
    age = new TextField(container,container.getDefaultFont(),100,150,201,20,this);
}
项目:GPVM    文件:SavedStateTest.java   
/**
 * @see org.newdawn.slick.Game#init(org.newdawn.slick.GameContainer)
 */
public void init(GameContainer container) throws SlickException {
    state = new SavedState("testdata");
    nameValue = state.getString("name","DefaultName");
    ageValue = (int) state.getNumber("age",64);

    name = new TextField(container,container.getDefaultFont(),100,100,300,20,this);
    age = new TextField(container,container.getDefaultFont(),100,150,201,20,this);
}
项目:SpaceStationAlpha    文件:SavedStateTest.java   
/**
 * @see org.newdawn.slick.Game#init(org.newdawn.slick.GameContainer)
 */
public void init(GameContainer container) throws SlickException {
    state = new SavedState("testdata");
    nameValue = state.getString("name","DefaultName");
    ageValue = (int) state.getNumber("age",64);

    name = new TextField(container,container.getDefaultFont(),100,100,300,20,this);
    age = new TextField(container,container.getDefaultFont(),100,150,201,20,this);
}
项目:cretion    文件:SavedStateTest.java   
/**
 * @see org.newdawn.slick.Game#init(org.newdawn.slick.GameContainer)
 */
public void init(GameContainer container) throws SlickException {
    state = new SavedState("testdata");
    nameValue = state.getString("name","DefaultName");
    ageValue = (int) state.getNumber("age",64);

    name = new TextField(container,container.getDefaultFont(),100,100,300,20,this);
    age = new TextField(container,container.getDefaultFont(),100,150,201,20,this);
}
项目:slick2d-maven    文件:SavedStateTest.java   
/**
 * @see org.newdawn.slick.Game#init(org.newdawn.slick.GameContainer)
 */
public void init(GameContainer container) throws SlickException {
    state = new SavedState("testdata");
    nameValue = state.getString("name","DefaultName");
    ageValue = (int) state.getNumber("age",64);

    name = new TextField(container,container.getDefaultFont(),100,100,300,20,this);
    age = new TextField(container,container.getDefaultFont(),100,150,201,20,this);
}