public class EntitySpawner extends Block implements IsSelfAware
GAME_DIAGLENGTH, GAME_DIAGLENGTH2, GAME_EDGELENGTH, OBJECTTYPESNUM, SCREEN_DEPTH, SCREEN_DEPTH2, SCREEN_DEPTH4, SCREEN_HEIGHT, SCREEN_HEIGHT2, SCREEN_HEIGHT4, SCREEN_WIDTH, SCREEN_WIDTH2, SCREEN_WIDTH4, VALUESNUM
Constructor and Description |
---|
EntitySpawner(int id,
Coordinate coords) |
Modifier and Type | Method and Description |
---|---|
AbstractPosition |
getPosition()
Return the coordinates of the SelfAware object.
|
void |
setPosition(AbstractPosition pos)
Set the coordinates without safety check.
|
void |
update(float delta)
Updates the logic of the object.
|
createBasicInstance, getBlockSprite, getBlocksprites, getCategory, getInstance, getInstance, getInstance, getName, getRepresentingColor, hasSides, isLiquid, render, render, render, render, renderSide, renderSide, renderSide, renderSide, setClipped, setNoSides, setSideClipping, staticDispose
getDrawCalls, getId, getLightlevel, getPixmap, getRotation, getSprite, getSprites, getSpritesheet, getValue, increaseDrawCalls, isClipped, isHidden, isObstacle, isTransparent, loadSheet, prepareColor, render, render, render, render, resetDrawCalls, setHidden, setLightlevel, setObstacle, setRotation, setTransparent, setValue, updateStaticUpdates
public EntitySpawner(int id, Coordinate coords)
id
- coords
- public void update(float delta)
AbstractGameObject
public AbstractPosition getPosition()
IsSelfAware
getPosition
in interface IsSelfAware
public void setPosition(AbstractPosition pos)
IsSelfAware
setPosition
in interface IsSelfAware
pos
- the coordinates you want to set