public class PointsField extends InterfaceObject
Constructor and Description |
---|
PointsField(java.io.InputStream fileInput,
java.lang.String ref,
boolean flipped,
Attribute value,
java.lang.String label,
org.newdawn.slick.GameContainer gc)
Constructor without info window
|
PointsField(java.io.InputStream fileInput,
java.lang.String ref,
boolean flipped,
Attribute value,
java.lang.String label,
org.newdawn.slick.GameContainer gc,
java.lang.String info)
Constructor with info window
|
Modifier and Type | Method and Description |
---|---|
void |
draw(float x,
float y,
boolean scaledPos)
Draws field
|
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
public PointsField(java.io.InputStream fileInput, java.lang.String ref, boolean flipped, Attribute value, java.lang.String label, org.newdawn.slick.GameContainer gc) throws org.newdawn.slick.SlickException, java.awt.FontFormatException, java.io.IOException
fileInput
- Input pointed on specific graphic file for field backgroundref
- The name that should be assigned to the imageflipped
- True if the image should be flipped on the y-axis on loadvalue
- Value to displaylabel
- Label to displaygc
- GameContainer for super classorg.newdawn.slick.SlickException
java.awt.FontFormatException
java.io.IOException
public PointsField(java.io.InputStream fileInput, java.lang.String ref, boolean flipped, Attribute value, java.lang.String label, org.newdawn.slick.GameContainer gc, java.lang.String info) throws org.newdawn.slick.SlickException, java.awt.FontFormatException, java.io.IOException
fileInput
- Input pointed on specific graphic file for field backgroundref
- The name that should be assigned to the imageflipped
- True if the image should be flipped on the y-axis on loadvalue
- Value to displaylabel
- Label to displaygc
- GameContainer for super classinfo
- Informations about field to display in info windoworg.newdawn.slick.SlickException
java.awt.FontFormatException
java.io.IOException
public void draw(float x, float y, boolean scaledPos)
draw
in class InterfaceObject
x
- Position on x axisy
- Position on y axisscaledPos
- True if object position should be scaled