public class SkillTile extends InterfaceTile
Constructor and Description |
---|
SkillTile(java.io.InputStream fileInput,
java.lang.String ref,
boolean flipped,
org.newdawn.slick.GameContainer gc,
java.lang.String textForInfo)
Skill tile constructor
|
Modifier and Type | Method and Description |
---|---|
void |
draw(float x,
float y,
boolean scaledPos)
Draws object
|
void |
inputEnded() |
void |
inputStarted() |
boolean |
isAcceptingInput() |
boolean |
isActive()
Checks if tile is active
|
void |
mouseClicked(int arg0,
int arg1,
int arg2,
int arg3) |
void |
mouseDragged(int oldx,
int oldy,
int newx,
int newy) |
void |
mouseMoved(int arg0,
int arg1,
int arg2,
int arg3) |
void |
mousePressed(int button,
int x,
int y) |
void |
mouseReleased(int arg0,
int arg1,
int arg2) |
void |
mouseWheelMoved(int arg0) |
void |
setActive(boolean active)
Sets tile active or inactive
|
void |
setInput(org.newdawn.slick.Input arg0) |
click, dragged, draw, getScaledHeight, getScaledWidth, isDragged
atCenter, draw, draw, draw, draw, draw, draw, getDis, getPos, getScale, getSize, isMouseOver, setInfo, setPosition, setSize
bind, clampTexture, copy, destroy, draw, draw, draw, draw, draw, draw, drawCentered, drawEmbedded, drawEmbedded, drawEmbedded, drawFlash, drawFlash, drawFlash, drawSheared, drawSheared, drawWarped, endUse, ensureInverted, flushPixelData, getAlpha, getCenterOfRotationX, getCenterOfRotationY, getColor, getFilter, getFlippedCopy, getGraphics, getHeight, getName, getResourceReference, getRotation, getScaledCopy, getScaledCopy, getSubImage, getTexture, getTextureHeight, getTextureOffsetX, getTextureOffsetY, getTextureWidth, getWidth, isDestroyed, rotate, setAlpha, setCenterOfRotation, setColor, setColor, setFilter, setImageColor, setImageColor, setName, setRotation, setTexture, startUse, toString
public SkillTile(java.io.InputStream fileInput, java.lang.String ref, boolean flipped, org.newdawn.slick.GameContainer gc, java.lang.String textForInfo) throws org.newdawn.slick.SlickException, java.io.IOException, java.awt.FontFormatException
fileInput
- Input stream to img fileref
- Name for image in systemflipped
- If file suppose to be flippedgc
- Slick game containertextForInfo
- org.newdawn.slick.SlickException
java.io.IOException
java.awt.FontFormatException
public void draw(float x, float y, boolean scaledPos)
InterfaceObject
draw
in class InterfaceTile
x
- Position on x axisy
- Position on y axisscaledPos
- True if object position should be scaledpublic void setActive(boolean active)
active
- True to activate tile, false otherwisepublic boolean isActive()
public void mouseClicked(int arg0, int arg1, int arg2, int arg3)
public void mousePressed(int button, int x, int y)
mousePressed
in interface org.newdawn.slick.MouseListener
mousePressed
in class InterfaceTile
public void mouseDragged(int oldx, int oldy, int newx, int newy)
public void mouseMoved(int arg0, int arg1, int arg2, int arg3)
public void mouseReleased(int arg0, int arg1, int arg2)
public void mouseWheelMoved(int arg0)
public void inputEnded()
public void inputStarted()
public boolean isAcceptingInput()
public void setInput(org.newdawn.slick.Input arg0)