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, show
protected void preinit()
GameContainer
preinit
in class GameContainer
protected void postinit()
GameContainer
postinit
in class GameContainer
public void update(float delta)
GameContainer
update
in class GameContainer
delta
- The time in seconds since the last updatepublic void interpolate(float alpha)
GameContainer
interpolate
in class GameContainer
alpha
- The alpha value to use during interpolationpublic void render(Graphics g)
GameContainer
render
in class GameContainer
g
- The Graphics
context available for renderingpublic void addSystem(GameSystem system)
GameSystem
to be handled by this
EntityComponentSystemGame
system
- An implementation of GameSystem
to be addedpublic void removeSystem(GameSystem system)
GameSystem
from this EntityComponentSystemGame
system
- An implementation of GameSystem
to be removed