public class Warning extends Message
Constructor and Description |
---|
Warning(org.newdawn.slick.GameContainer gc)
Warning constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Force message to close
|
void |
draw()
Draws object on current position
(position is scaled)
|
void |
draw(float x,
float y)
Draws object
|
boolean |
isAccept() |
boolean |
isCancel() |
boolean |
isUndecided() |
void |
mouseReleased(int button,
int x,
int y) |
void |
open(java.lang.String textWarning)
Sets text and opens message
|
draw, inputEnded, inputStarted, isAcceptingInput, isOpenReq, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseWheelMoved, setInput
atCenter, 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 Warning(org.newdawn.slick.GameContainer gc) throws org.newdawn.slick.SlickException, java.io.IOException, java.awt.FontFormatException
gc
- Game container for superclasstextMessage
- Text for warningorg.newdawn.slick.SlickException
java.io.IOException
java.awt.FontFormatException
public void draw(float x, float y)
InterfaceObject
draw
in interface org.newdawn.slick.Renderable
draw
in class InterfaceObject
x
- Position on x axisy
- Position on y axispublic void draw()
InterfaceObject
public void open(java.lang.String textWarning)
Message
public void close()
Message
public boolean isCancel()
public boolean isAccept()
public boolean isUndecided()
public void mouseReleased(int button, int x, int y)
mouseReleased
in interface org.newdawn.slick.MouseListener
mouseReleased
in class Message