public interface Sequencable extends Updatable, Renderable
Modifier and Type | Method and Description |
---|---|
void |
addKeyListener(InputDeviceKeyListener listener)
Add a key listener.
|
void |
end()
Terminate sequence.
|
void |
end(Class<? extends Sequencable> nextSequenceClass,
Object... arguments)
Terminate sequence, and set the next sequence.
|
Config |
getConfig()
Get the configuration.
|
int |
getFps()
Get current frame rate (number of image per second).
|
<T extends InputDevice> |
getInputDevice(Class<T> type)
Get the input device instance from its type.
|
Sequencable |
getNextSequence()
Get the next sequence depending of the
end() or end(Class, Object...) call. |
void |
onTerminated(boolean hasNextSequence)
Called when sequence is closing.
|
void |
setExtrapolated(boolean extrapolated)
Set the extrapolation flag.
|
void |
setResolution(Resolution newSource)
Set the new resolution used by the sequence.
|
void |
setSystemCursorVisible(boolean visible)
Set the system cursor visibility.
|
void |
start(Screen screen)
Start sequence.
|
render
void start(Screen screen)
screen
- The screen used for the sequence.void end()
void end(Class<? extends Sequencable> nextSequenceClass, Object... arguments)
nextSequenceClass
- The next sequence class reference.arguments
- The sequence arguments list if needed by its constructor.LionEngineException
- If sequence is null
or cannot be created.void addKeyListener(InputDeviceKeyListener listener)
listener
- The listener to add.void setExtrapolated(boolean extrapolated)
extrapolated
- true
will activate it, false
will disable it.void setResolution(Resolution newSource)
newSource
- The new resolution used.LionEngineException
- If the resolution is null
.void setSystemCursorVisible(boolean visible)
visible
- true
if visible, false
else.Config getConfig()
int getFps()
<T extends InputDevice> T getInputDevice(Class<T> type)
T
- The input device.type
- The input device type.LionEngineException
- If device not found.Sequencable getNextSequence()
end()
or end(Class, Object...)
call.null
if none.void onTerminated(boolean hasNextSequence)
hasNextSequence
- true
if there is a next sequence, false
else (then application
will end definitely).Copyright © 2016 Byron 3D Games Studio. All rights reserved.