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, 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(System system)
System
to be handled by this
EntityComponentSystemGame
system
- An implementation of System
to be addedpublic void removeSystem(System system)
System
from this EntityComponentSystemGame
system
- An implementation of System
to be removedCopyright © 2014. All rights reserved.