public class Selection extends AbstractEntity
GAME_DIAGLENGTH, GAME_DIAGLENGTH2, GAME_EDGELENGTH, GAME_EDGELENGTH2, OBJECTTYPESNUM, SCREEN_DEPTH, SCREEN_DEPTH2, SCREEN_DEPTH4, SCREEN_HEIGHT, SCREEN_HEIGHT2, SCREEN_HEIGHT4, SCREEN_WIDTH, SCREEN_WIDTH2, SCREEN_WIDTH4, VALUESNUM
Constructor and Description |
---|
Selection() |
Modifier and Type | Method and Description |
---|---|
Sides |
getNormalSides() |
void |
setNormal(Sides side) |
void |
setPosition(AbstractPosition pos)
Set the coordinates without safety check.
|
AbstractEntity |
spawn(Point point)
add this entity to the map-> let it spawn
|
void |
update(float delta)
Updates the logic of the object.
|
void |
update(GameView view,
int screenX,
int screenY)
Updates thhe selection using the screen position of the cursor.
|
dispose, getCategory, getDimensionZ, getName, getPosition, isOnGround, render, save, setDimensionZ, setHeight, shouldBeDisposed, spawned
getDrawCalls, getHealth, getId, getLightlevel, getPixmap, getRotation, getSprite, getSpriteId, getSprites, getSpritesheet, getValue, increaseDrawCalls, isHidden, isObstacle, isTransparent, loadSheet, render, render, render, render, render, render, render, resetDrawCalls, setGraphicsId, setHealth, setHidden, setLightlevel, setObstacle, setRotation, setTransparent, setValue, staticDispose, updateStaticUpdates
public AbstractEntity spawn(Point point)
AbstractEntity
spawn
in class AbstractEntity
public void update(float delta)
AbstractEntity
update
in class AbstractEntity
delta
- time since last updatepublic void setPosition(AbstractPosition pos)
IsSelfAware
setPosition
in interface IsSelfAware
setPosition
in class AbstractEntity
pos
- the coordinates you want to setpublic void setNormal(Sides side)
side
- public Sides getNormalSides()
public void update(GameView view, int screenX, int screenY)
view
- screenX
- cursor positionscreenY
- cursor position