public abstract class EntityComponentSystemGame extends GameContainer
GameContainer based on the
entity-component-system patterngraphics, height, shapeRenderer, spriteBatch, width| Constructor and Description |
|---|
EntityComponentSystemGame() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSystem(GameSystem system)
Adds a
GameSystem 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(GameSystem system)
Removes a
GameSystem 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(GameSystem system)
GameSystem to be handled by this
EntityComponentSystemGamesystem - An implementation of GameSystem to be addedpublic void removeSystem(GameSystem system)
GameSystem from this EntityComponentSystemGamesystem - An implementation of GameSystem to be removed