public abstract class GameScreenEntity extends Object implements Entity, GameScreen
Entity that also implements GameScreen| Constructor and Description |
|---|
GameScreenEntity(int id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(Component component)
|
void |
addEntityListener(EntityListener listener)
Adds an
EntityListener to this Entity |
<T> List<T> |
getComponents(Class<T> clazz)
Returns all
Components that implement the specified the class or
interface |
int |
getId()
Returns the identifier of the screen
|
void |
interpolateScreenComponents(GameContainer gc,
float alpha) |
<T extends Component> |
removeAllComponentsOfType(Class<T> clazz)
Removes all
Components that implement a specific type |
void |
removeComponent(Component component)
|
void |
removeEntityListener(EntityListener listener)
Removes an
EntityListener from this Entity |
void |
renderScreenComponents(GameContainer gc,
Graphics g) |
void |
updateScreenComponents(GameContainer gc,
ScreenManager<? extends GameScreen> screenManager,
float delta) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialise, interpolate, postTransitionIn, postTransitionOut, preTransitionIn, preTransitionOut, render, updatepublic void updateScreenComponents(GameContainer gc, ScreenManager<? extends GameScreen> screenManager, float delta)
public void interpolateScreenComponents(GameContainer gc, float alpha)
public void renderScreenComponents(GameContainer gc, Graphics g)
public void addComponent(Component component)
EntityaddComponent in interface Entitycomponent - An instance of Componentpublic <T> List<T> getComponents(Class<T> clazz)
EntityComponents that implement the specified the class or
interfacepublic void removeComponent(Component component)
EntityremoveComponent in interface Entitycomponent - The Component to removepublic <T extends Component> List<T> removeAllComponentsOfType(Class<T> clazz)
EntityComponents that implement a specific typeremoveAllComponentsOfType in interface Entityclazz - The Class to search forpublic void addEntityListener(EntityListener listener)
EntityEntityListener to this EntityaddEntityListener in interface Entitylistener - The EntityListener to addpublic void removeEntityListener(EntityListener listener)
EntityEntityListener from this EntityremoveEntityListener in interface Entitylistener - The EntityListener to be removedpublic int getId()
GameScreengetId in interface GameScreenCopyright © 2014. All rights reserved.