public abstract class EntityComponentSystemGame extends GameContainer
GameContainer based on the
entity-component-system patterngraphics, height, spriteBatch, width| Constructor and Description |
|---|
EntityComponentSystemGame() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSystem(System system)
Adds a
System to be handled by this
EntityComponentSystemGame |
void |
interpolate(float alpha)
Interpolate the game state
|
protected void |
postinit()
Internal post-initialisation code
|
protected void |
preinit()
Internal pre-initialisation code
|
void |
removeSystem(System system)
Removes a
System from this EntityComponentSystemGame |
void |
render(Graphics g)
Render the game
|
void |
update(float delta)
Update the game
|
dispose, getHeight, getWidth, hide, initialise, render, resize, showprotected void preinit()
GameContainerpreinit in class GameContainerprotected void postinit()
GameContainerpostinit in class GameContainerpublic void update(float delta)
GameContainerupdate in class GameContainerdelta - The time in seconds since the last updatepublic void interpolate(float alpha)
GameContainerinterpolate in class GameContaineralpha - The alpha value to use during interpolationpublic void render(Graphics g)
GameContainerrender in class GameContainerg - The Graphics context available for renderingpublic void addSystem(System system)
System to be handled by this
EntityComponentSystemGamesystem - An implementation of System to be addedpublic void removeSystem(System system)
System from this EntityComponentSystemGamesystem - An implementation of System to be removedCopyright © 2014. All rights reserved.