public class Selection extends AbstractEntity
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
Modifier and Type | Method and Description |
---|---|
Block |
getColor()
Get the block of the tool.
|
Sides |
getNormalSides() |
void |
setColor(int id,
int value) |
void |
setNormal(Sides side) |
void |
setPosition(AbstractPosition pos)
Set the coordinates without safety check.
|
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, exist, existing, getCategory, getDimensionZ, getName, getPosition, onGround, render, setDimensionZ, setHeight, shouldBeDisposed
getDrawCalls, getId, getLightlevel, getPixmap, getRotation, getSprite, getSprites, getSpritesheet, getValue, increaseDrawCalls, isClipped, isHidden, isObstacle, isTransparent, loadSheet, prepareColor, render, render, render, render, render, render, render, resetDrawCalls, setClipped, setHidden, setLightlevel, setObstacle, setRotation, setTransparent, setValue, staticDispose, updateStaticUpdates
public Selection(Point point)
point
- public void update(float delta)
AbstractGameObject
update
in class AbstractGameObject
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 setColor(int id, int value)
id
- value
- public Block getColor()
public void setNormal(Sides side)
side
- public Sides getNormalSides()
public void update(GameView view, int screenX, int screenY)
view
- screenX
- cursor positionscreenY
- cursor position