public interface System<T extends Entity>
Systems as part of the Entity-Component-System pattern| Modifier and Type | Method and Description |
|---|---|
void |
addEntity(T entity)
|
void |
initialise(GameContainer gc)
Initialise the
System |
void |
interpolate(GameContainer gc,
float alpha)
Interpolate the
System |
boolean |
isDebugging()
Returns if this
System is debugging |
void |
removeEntity(T entity)
|
void |
render(GameContainer gc,
Graphics g)
Render the
System |
void |
setDebugging(boolean debugging)
Sets whether or not this
System is in debug mode |
void |
update(GameContainer gc,
float delta)
Update the
System |
void removeEntity(T entity)
entity - The UUIDEntity to be removedvoid initialise(GameContainer gc)
Systemgc - The GameContainer calling initialisevoid update(GameContainer gc, float delta)
Systemgc - The GameContainer calling updatedelta - The time in seconds since the last updatevoid interpolate(GameContainer gc, float alpha)
Systemgc - The GameContainer calling interpolatealpha - The alpha value to use during interpolationvoid render(GameContainer gc, Graphics g)
Systemgc - The GameContainer calling renderg - The Graphics instanceboolean isDebugging()
System is debuggingvoid setDebugging(boolean debugging)
System is in debug modedebugging - True if debuggingCopyright © 2014. All rights reserved.