Definition at line 26 of file Stage.java.
◆ Stage()
| com.jscratch.Stage.Stage |
( |
| ) |
|
◆ addBackdrop()
| void com.jscratch.Stage.addBackdrop |
( |
Costume | c | ) |
|
◆ addSprite()
| void com.jscratch.Stage.addSprite |
( |
Sprite | s | ) |
|
◆ addToList()
| void com.jscratch.Stage.addToList |
( |
String | listName, |
|
|
Object | item ) |
◆ answer()
| String com.jscratch.Stage.answer |
( |
| ) |
|
◆ broadcast()
| void com.jscratch.Stage.broadcast |
( |
String | message | ) |
|
◆ changeVariableBy()
| void com.jscratch.Stage.changeVariableBy |
( |
String | name, |
|
|
double | amount ) |
◆ clearSprites()
| void com.jscratch.Stage.clearSprites |
( |
| ) |
|
◆ disposeStage()
| void com.jscratch.Stage.disposeStage |
( |
| ) |
|
◆ getBackdrop()
| Costume com.jscratch.Stage.getBackdrop |
( |
| ) |
|
◆ getInstance()
| Stage com.jscratch.Stage.getInstance |
( |
| ) |
|
|
static |
◆ getMouseX()
| int com.jscratch.Stage.getMouseX |
( |
| ) |
|
◆ getMouseY()
| int com.jscratch.Stage.getMouseY |
( |
| ) |
|
◆ getScaleFactor()
| double com.jscratch.Stage.getScaleFactor |
( |
| ) |
|
◆ getStageHeight()
| int com.jscratch.Stage.getStageHeight |
( |
| ) |
|
◆ getStageWidth()
| int com.jscratch.Stage.getStageWidth |
( |
| ) |
|
◆ getTimer()
| double com.jscratch.Stage.getTimer |
( |
| ) |
|
◆ getVariable()
| Object com.jscratch.Stage.getVariable |
( |
String | name | ) |
|
◆ getVariableAsNumber()
| double com.jscratch.Stage.getVariableAsNumber |
( |
String | name | ) |
|
◆ getVariableAsString()
| String com.jscratch.Stage.getVariableAsString |
( |
String | name | ) |
|
◆ isKeyPressed() [1/2]
| boolean com.jscratch.Stage.isKeyPressed |
( |
int | keyCode | ) |
|
◆ isKeyPressed() [2/2]
| boolean com.jscratch.Stage.isKeyPressed |
( |
String | keyName | ) |
|
◆ isMouseDown()
| boolean com.jscratch.Stage.isMouseDown |
( |
| ) |
|
◆ join()
| String com.jscratch.Stage.join |
( |
Object | a, |
|
|
Object | b ) |
◆ keyPressed()
| void com.jscratch.Stage.keyPressed |
( |
KeyEvent | e | ) |
|
◆ keyReleased()
| void com.jscratch.Stage.keyReleased |
( |
KeyEvent | e | ) |
|
◆ keyTyped()
| void com.jscratch.Stage.keyTyped |
( |
KeyEvent | e | ) |
|
◆ mouseClicked()
| void com.jscratch.Stage.mouseClicked |
( |
MouseEvent | e | ) |
|
◆ mouseDragged()
| void com.jscratch.Stage.mouseDragged |
( |
MouseEvent | e | ) |
|
◆ mouseEntered()
| void com.jscratch.Stage.mouseEntered |
( |
MouseEvent | e | ) |
|
◆ mouseExited()
| void com.jscratch.Stage.mouseExited |
( |
MouseEvent | e | ) |
|
◆ mouseMoved()
| void com.jscratch.Stage.mouseMoved |
( |
MouseEvent | e | ) |
|
◆ mousePressed()
| void com.jscratch.Stage.mousePressed |
( |
MouseEvent | e | ) |
|
◆ mouseReleased()
| void com.jscratch.Stage.mouseReleased |
( |
MouseEvent | e | ) |
|
◆ nextBackdrop()
| void com.jscratch.Stage.nextBackdrop |
( |
| ) |
|
◆ paintComponent()
| void com.jscratch.Stage.paintComponent |
( |
Graphics | g | ) |
|
|
protected |
◆ playSound()
| void com.jscratch.Stage.playSound |
( |
String | path | ) |
|
◆ resetTimer()
| void com.jscratch.Stage.resetTimer |
( |
| ) |
|
◆ run() [1/2]
| void com.jscratch.Stage.run |
( |
Runnable | setup | ) |
|
|
static |
◆ run() [2/2]
| void com.jscratch.Stage.run |
( |
Stage | stage, |
|
|
Runnable | setup ) |
|
static |
◆ setStageScale()
| void com.jscratch.Stage.setStageScale |
( |
int | scale, |
|
|
JFrame | frame ) |
◆ setVariable()
| void com.jscratch.Stage.setVariable |
( |
String | name, |
|
|
Object | value ) |
◆ setVolume()
| void com.jscratch.Stage.setVolume |
( |
double | vol | ) |
|
◆ startScript()
| void com.jscratch.Stage.startScript |
( |
Runnable | script | ) |
|
◆ switchBackdropTo()
| void com.jscratch.Stage.switchBackdropTo |
( |
String | name | ) |
|
◆ update()
| void com.jscratch.Stage.update |
( |
| ) |
|
|
private |
◆ waitNextFrame()
| void com.jscratch.Stage.waitNextFrame |
( |
| ) |
|
◆ waitTillNextFrame()
| void com.jscratch.Stage.waitTillNextFrame |
( |
| ) |
|
◆ whenIReceive()
| void com.jscratch.Stage.whenIReceive |
( |
String | message, |
|
|
Runnable | action ) |
◆ whenKeyPressed()
| void com.jscratch.Stage.whenKeyPressed |
( |
int | keyCode, |
|
|
Runnable | action ) |
◆ whenScaleChanged()
| void com.jscratch.Stage.whenScaleChanged |
( |
java.util.function.BiConsumer< Double, Double > | action | ) |
|
◆ backdropIndex
| int com.jscratch.Stage.backdropIndex = 0 |
|
private |
◆ backdrops
| List<Costume> com.jscratch.Stage.backdrops = new ArrayList<>() |
|
private |
◆ broadcastListeners
| java.util.Map<String, List<Runnable> > com.jscratch.Stage.broadcastListeners = new java.util.concurrent.ConcurrentHashMap<>() |
|
private |
◆ currentBackdropName
| String com.jscratch.Stage.currentBackdropName = "" |
|
private |
◆ currentScale
| double com.jscratch.Stage.currentScale = 1.0 |
|
private |
◆ frame
| JFrame com.jscratch.Stage.frame |
|
private |
◆ frameLatch
| java.util.concurrent.CountDownLatch com.jscratch.Stage.frameLatch = new java.util.concurrent.CountDownLatch(1) |
|
private |
◆ instance
| Stage com.jscratch.Stage.instance |
|
static |
◆ keyListeners
| java.util.Map<Integer, List<Runnable> > com.jscratch.Stage.keyListeners = new java.util.concurrent.ConcurrentHashMap<>() |
|
private |
◆ keysDown
| final boolean [] com.jscratch.Stage.keysDown = new boolean[65536] |
|
private |
◆ mouseDown
| boolean com.jscratch.Stage.mouseDown = false |
|
private |
◆ mouseX
| int com.jscratch.Stage.mouseX = 0 |
|
private |
◆ mouseY
| int com.jscratch.Stage.mouseY = 0 |
|
private |
◆ renderTimer
| Timer com.jscratch.Stage.renderTimer |
|
private |
◆ scaleListeners
| List<java.util.function.BiConsumer<Double, Double> > com.jscratch.Stage.scaleListeners = new java.util.concurrent.CopyOnWriteArrayList<>() |
|
private |
◆ sprites
| List<Sprite> com.jscratch.Stage.sprites = new CopyOnWriteArrayList<>() |
|
private |
◆ stageObject
◆ startTime
| long com.jscratch.Stage.startTime |
|
private |
◆ tempo
| double com.jscratch.Stage.tempo = 60 |
|
private |
◆ timerValue
| double com.jscratch.Stage.timerValue = 0 |
|
private |
The documentation for this class was generated from the following file: