public interface System<T extends Entity>
System
s as part of the Entity-Component-System patternModifier 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)
System
gc
- The GameContainer
calling initialisevoid update(GameContainer gc, float delta)
System
gc
- The GameContainer
calling updatedelta
- The time in seconds since the last updatevoid interpolate(GameContainer gc, float alpha)
System
gc
- The GameContainer
calling interpolatealpha
- The alpha value to use during interpolationvoid render(GameContainer gc, Graphics g)
System
gc
- 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.