public abstract class Sequence
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
protected Config |
config |
protected Display |
display |
protected int |
fact |
protected float |
factD |
protected Filter |
filter |
protected Keyboard |
keyboard |
protected Mouse |
mouse |
protected java.awt.image.AffineTransformOp |
opBilinear |
protected java.awt.image.AffineTransformOp |
opNone |
protected Rendering |
rendering |
protected Screen |
screen |
protected Text |
systemText |
Constructor and Description |
---|
Sequence() |
Modifier and Type | Method and Description |
---|---|
void |
end(java.lang.String nextSequenceName)
Terminate sequence, and set the next sequence id.
|
int |
getCurrentFrameRate()
Get current frame rate value.
|
java.lang.String |
getNextSequenceName()
Get next sequence name.
|
protected java.awt.image.AffineTransformOp |
getOp()
Get the transforming filter, depending of the configuration.
|
protected abstract void |
load()
Loading sequence datas.
|
void |
refresh()
Must be called first in rendering function, in order to clean the screen before any rendering.
|
protected abstract void |
render(java.awt.Graphics2D g)
Rendering sequence.
|
void |
run() |
void |
setTitle(java.lang.String title)
Set sequence title.
|
void |
showFPS(int x,
int y)
Display current frame rate at specified location.
|
protected abstract void |
update(float extrp)
Updating sequence.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected Text systemText
protected Screen screen
protected Config config
protected Display display
protected Keyboard keyboard
protected Mouse mouse
protected Filter filter
protected Rendering rendering
protected java.awt.image.AffineTransformOp opNone
protected java.awt.image.AffineTransformOp opBilinear
protected int fact
protected float factD
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected final java.awt.image.AffineTransformOp getOp()
protected abstract void load()
protected abstract void update(float extrp)
extrp
- current extrapolation value.protected abstract void render(java.awt.Graphics2D g)
g
- graphic ouput.public void setTitle(java.lang.String title)
title
- sequence title.public void end(java.lang.String nextSequenceName)
nextSequenceName
- next game name.public java.lang.String getNextSequenceName()
public void refresh()
public int getCurrentFrameRate()
public void showFPS(int x, int y)
x
- location x.y
- location y.