Package org.newdawn.slick.state.transition

Examples of org.newdawn.slick.state.transition.EmptyTransition


   * @param leave The transition to use when leaving the current state
   * @param enter The transition to use when entering the new state
   */
  public void enterState(int id, Transition leave, Transition enter) {
    if (leave == null) {
      leave = new EmptyTransition();
    }
    if (enter == null) {
      enter = new EmptyTransition();
    }
    leaveTransition = leave;
    enterTransition = enter;
   
    nextState = getState(id);
View Full Code Here


        public void init(GameState firstState, GameState secondState) {
        }
      };
     
      game.enterState(TestState2.ID, t, new EmptyTransition());
    }
    if (key == Input.KEY_3) {
      game.enterState(TestState3.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
    }
  }
View Full Code Here

TOP

Related Classes of org.newdawn.slick.state.transition.EmptyTransition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.