de.jos.game.actions
Class ActionTextFader

java.lang.Object
  extended by de.jos.game.actions.AbstractAction
      extended by de.jos.game.actions.ActionTextFader
All Implemented Interfaces:
SpecialActionEvent

public class ActionTextFader
extends AbstractAction
implements SpecialActionEvent


Field Summary
static double MOVING_X_INCREMENT
           
static int STATE_FADING
           
static int STATE_FINISHED
           
static float TRANSPARENCY_INCREMENT
           
static float TRANSPARENCY_INIT
           
 
Constructor Summary
ActionTextFader()
           
 
Method Summary
 java.lang.Integer getLayer()
           
 java.lang.String getName()
           
 java.lang.String getText()
           
 double getX()
           
 double getY()
           
 void init()
           
 boolean isFinished()
          If finished returns true, the actionEvent can be removed from the list.
 void render(java.awt.Graphics2D graphics, com.golden.gamedev.GameObject gameObject)
           
 void setText(java.lang.String text)
           
 void setX(double x)
           
 void setY(double y)
           
 void update(long elapsedTime, com.golden.gamedev.GameObject gameObject)
           
 
Methods inherited from class de.jos.game.actions.AbstractAction
cleanup, getCleanupAction, getGameFont, getNewSpecialEventList, getResourceContainer, getString, getString, isBlocking, setCleanupAction, setResourceContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.jos.game.actions.SpecialActionEvent
cleanup, getNewSpecialEventList, isBlocking, setResourceContainer
 

Field Detail

TRANSPARENCY_INIT

public static final float TRANSPARENCY_INIT
See Also:
Constant Field Values

TRANSPARENCY_INCREMENT

public static final float TRANSPARENCY_INCREMENT
See Also:
Constant Field Values

MOVING_X_INCREMENT

public static final double MOVING_X_INCREMENT
See Also:
Constant Field Values

STATE_FADING

public static final int STATE_FADING
See Also:
Constant Field Values

STATE_FINISHED

public static final int STATE_FINISHED
See Also:
Constant Field Values
Constructor Detail

ActionTextFader

public ActionTextFader()
Method Detail

init

public void init()
Specified by:
init in interface SpecialActionEvent
Overrides:
init in class AbstractAction

update

public void update(long elapsedTime,
                   com.golden.gamedev.GameObject gameObject)
Specified by:
update in interface SpecialActionEvent

render

public void render(java.awt.Graphics2D graphics,
                   com.golden.gamedev.GameObject gameObject)
Specified by:
render in interface SpecialActionEvent

getLayer

public java.lang.Integer getLayer()
Specified by:
getLayer in interface SpecialActionEvent
Specified by:
getLayer in class AbstractAction

isFinished

public boolean isFinished()
Description copied from interface: SpecialActionEvent
If finished returns true, the actionEvent can be removed from the list.

Specified by:
isFinished in interface SpecialActionEvent
Returns:

getX

public double getX()

setX

public void setX(double x)

getY

public double getY()

setY

public void setY(double y)

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

getName

public java.lang.String getName()
Specified by:
getName in interface SpecialActionEvent


Copyright © 2008. All Rights Reserved.