public abstract class SequenceGame extends Sequence
The following tools are included:
Services
: providing Context
and Sequencer
to control sequence (available after
Sequence.load()
).WorldGame
: added to Services
, update(double)
and render(Graphic)
are already
called.Sequence.setSystemCursorVisible(boolean)
: set to false
.Modifier and Type | Class and Description |
---|---|
protected static interface |
SequenceGame.WorldCreator
World factory interface.
|
Modifier and Type | Field and Description |
---|---|
protected Services |
services
Services instance.
|
protected WorldGame |
world
Handled world.
|
Constructor and Description |
---|
SequenceGame(Context context,
Resolution resolution,
SequenceGame.WorldCreator creator)
Create sequence.
|
SequenceGame(Context context,
SequenceGame.WorldCreator creator)
Create sequence.
|
Modifier and Type | Method and Description |
---|---|
protected void |
onResolutionChanged(int width,
int height,
int rate)
Called when the resolution changed.
|
void |
onTerminated(boolean hasNextSequence)
Called when sequence is closing.
|
void |
render(Graphic g) |
void |
update(double extrp) |
addKeyListener, end, end, getConfig, getFps, getHeight, getInputDevice, getNextSequence, getWidth, getX, getY, load, notifyClosed, notifyFocusGained, notifyFocusLost, onLoaded, setFilter, setLoop, setResolution, setSystemCursorVisible, start
protected final Services services
protected final WorldGame world
public SequenceGame(Context context, SequenceGame.WorldCreator creator)
Config.getOutput()
.context
- The context reference.creator
- The world creator reference.LionEngineException
- If invalid arguments.public SequenceGame(Context context, Resolution resolution, SequenceGame.WorldCreator creator)
context
- The context reference.resolution
- The resolution source reference.creator
- The world creator reference.LionEngineException
- If invalid arguments.protected void onResolutionChanged(int width, int height, int rate)
onResolutionChanged
in class Sequence
width
- The new screen width.height
- The new screen height.rate
- The new rate.public void update(double extrp)
public void render(Graphic g)
public void onTerminated(boolean hasNextSequence)
Engine.terminate()
called if does not have next sequence.onTerminated
in interface Sequencable
onTerminated
in class Sequence
hasNextSequence
- true
if there is a next sequence, false
else (then application
will end definitely).Copyright © 2017 Byron 3D Games Studio. All rights reserved.