Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.newdawn.slick.state.transition
Class RotateTransition

    java.lang.Object
      org.newdawn.slick.state.transition.RotateTransition

All Implemented Interfaces:
  Transition

    public class RotateTransition

extends java.lang.Object
implements Transition

A transition that causes the previous state to rotate and scale down into the new state. This is an enter transition

Author:
  kevin

Constructor Summary
`RotateTransition()` Create a new transition
`RotateTransition(Color background)` Create a new transition

Method Summary
`void` | `init(GameState firstState, GameState secondState)` Initialise the transition
`boolean` | `isComplete()` Check if this transtion has been completed
`void` | `postRender(StateBasedGame game, GameContainer container, Graphics g)` Render the transition over the existing state rendering
`void` | `preRender(StateBasedGame game, GameContainer container, Graphics g)` Render the transition before the existing state rendering
`void` | `update(StateBasedGame game, GameContainer container, int delta)` Update the transition.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RotateTransition

    public RotateTransition()

  Create a new transition

### RotateTransition

    public RotateTransition(Color background)

  Create a new transition

  Parameters:
    `background` - The background colour to draw under the previous state

Method Detail

### init

    public void init(GameState firstState,
                     GameState secondState)

  Description copied from interface: `Transition`
  Initialise the transition

  Specified by:
    `init` in interface `Transition`
  Parameters:
    `firstState` - The first state we're rendering (this will be rendered by the framework)
    `secondState` - The second stat we're transitioning to or from (this one won't be rendered)
  See Also:
    `Transition.init(org.newdawn.slick.state.GameState, org.newdawn.slick.state.GameState)`

### isComplete

    public boolean isComplete()

  Description copied from interface: `Transition`
  Check if this transtion has been completed

  Specified by:
    `isComplete` in interface `Transition`
  Returns:
    True if the transition has been completed
  See Also:
    `Transition.isComplete()`

### postRender

    public void postRender(StateBasedGame game,
                           GameContainer container,
                           Graphics g)
                    throws SlickException

  Description copied from interface: `Transition`
  Render the transition over the existing state rendering

  Specified by:
    `postRender` in interface `Transition`
  Parameters:
    `game` - The game this transition is being rendered as part of
    `container` - The container holding the game
    `g` - The graphics context to use when rendering the transiton
  Throws:
    `SlickException` - Indicates a failure occured during the render
  See Also:
    `Transition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)`

### preRender

    public void preRender(StateBasedGame game,
                          GameContainer container,
                          Graphics g)
                   throws SlickException

  Description copied from interface: `Transition`
  Render the transition before the existing state rendering

  Specified by:
    `preRender` in interface `Transition`
  Parameters:
    `game` - The game this transition is being rendered as part of
    `container` - The container holding the game
    `g` - The graphics context to use when rendering the transiton
  Throws:
    `SlickException` - Indicates a failure occured during the render
  See Also:
    `Transition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)`

### update

    public void update(StateBasedGame game,
                       GameContainer container,
                       int delta)
                throws SlickException

  Description copied from interface: `Transition`
  Update the transition. Cause what ever happens in the transition to happen

  Specified by:
    `update` in interface `Transition`
  Parameters:
    `game` - The game this transition is being rendered as part of
    `container` - The container holding the game
    `delta` - The amount of time passed since last update
  Throws:
    `SlickException` - Indicates a failure occured during the update
  See Also:
    `Transition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 New Dawn Software. All Rights Reserved.