public class SkillSlot extends Slot implements org.newdawn.slick.MouseListener
Constructor and Description |
---|
SkillSlot(org.newdawn.slick.GameContainer gc)
Skill slot constructor
|
Modifier and Type | Method and Description |
---|---|
void |
click(boolean clicked)
Clicks or unclicks slot content
|
void |
dragged(boolean dragged)
Sets whole content in slots as dragged or not
|
java.util.List<? extends SlotContent> |
getContent()
Returns slot content
|
boolean |
insertContent(java.util.Collection<? extends SlotContent> content)
Inserts all content from specified collection to slot
|
boolean |
insertContent(SlotContent skill)
Inserts skill in slot
|
boolean |
isActive() |
boolean |
isSkillDragged()
Checks if tile of skill in slots is dragged
|
void |
mousePressed(int button,
int x,
int y) |
void |
mouseReleased(int button,
int x,
int y) |
void |
removeContent()
Removes whole content from slot
|
void |
useSkill()
Uses skill in slot
|
draw, getDraggedContent, inputEnded, inputStarted, isAcceptingInput, isContentDragged, isEmpty, isFull, mouseClicked, mouseDragged, mouseMoved, mouseWheelMoved, removeContent, removeContent, setInput
atCenter, draw, draw, draw, draw, draw, draw, draw, getDis, getPos, getScale, getScaledHeight, getScaledWidth, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public SkillSlot(org.newdawn.slick.GameContainer gc) throws org.newdawn.slick.SlickException, java.io.IOException, java.awt.FontFormatException
gc
- Slick game containerorg.newdawn.slick.SlickException
java.io.IOException
java.awt.FontFormatException
public boolean insertContent(SlotContent skill)
insertContent
in class Slot
skill
- Skill tilepublic boolean insertContent(java.util.Collection<? extends SlotContent> content)
Slot
insertContent
in class Slot
content
- Collection with contentpublic void click(boolean clicked)
Slot
public void useSkill()
public void dragged(boolean dragged)
Slot
public boolean isActive()
public boolean isSkillDragged()
public void removeContent()
Slot
removeContent
in class Slot
public java.util.List<? extends SlotContent> getContent()
Slot
getContent
in class Slot
public void mousePressed(int button, int x, int y)
mousePressed
in interface org.newdawn.slick.MouseListener
mousePressed
in class Slot
public void mouseReleased(int button, int x, int y)
mouseReleased
in interface org.newdawn.slick.MouseListener
mouseReleased
in class Slot