org.jrabbit.standard.intro.standard
Class JRabbitIntro

java.lang.Object
  extended by org.jrabbit.standard.intro.base.ImageIntro
      extended by org.jrabbit.standard.intro.base.ImageAudioIntro
          extended by org.jrabbit.standard.intro.base.BaseLogoIntro
              extended by org.jrabbit.standard.intro.standard.JRabbitIntro
All Implemented Interfaces:
Renderable, Updateable, Createable, Destroyable, Intro

public class JRabbitIntro
extends BaseLogoIntro

JRabbitIntro provides a simple implementation of BaseLogoIntro that both is the engine's default opening, and also provides a simple example of how to create a custom logo.

Author:
Chris Molini

Field Summary
protected  int phase
          The current phase.
protected  int phaseInterval
          The duration, in clock ticks, of each phase.
protected  int timer
          Keeps track of the time passed between updates.
 
Fields inherited from class org.jrabbit.standard.intro.base.BaseLogoIntro
backgroundColor, finished, logoColor
 
Fields inherited from class org.jrabbit.standard.intro.base.ImageAudioIntro
sound, soundLoader
 
Fields inherited from class org.jrabbit.standard.intro.base.ImageIntro
image, imageLoader
 
Constructor Summary
JRabbitIntro()
          Creates an Intro that will display the Java Rabbit Engine's logo and play the engine's logo tone.
 
Method Summary
 void update(int delta)
          Updates the logo.
 
Methods inherited from class org.jrabbit.standard.intro.base.BaseLogoIntro
finished, render, start
 
Methods inherited from class org.jrabbit.standard.intro.base.ImageAudioIntro
create, destroy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timer

protected int timer
Keeps track of the time passed between updates.


phaseInterval

protected int phaseInterval
The duration, in clock ticks, of each phase.


phase

protected int phase
The current phase.

Constructor Detail

JRabbitIntro

public JRabbitIntro()
Creates an Intro that will display the Java Rabbit Engine's logo and play the engine's logo tone.

Method Detail

update

public void update(int delta)
Updates the logo. This logo is multi-phase; it has several different segments of action (none of them are very complex).

Parameters:
delta - The number of clock ticks that have passed since the last update.