|
| | Player () |
| | DndEntity (String name) |
| | Sprite (String name) |
| void | setStage (Stage stage) |
| double | getX () |
| double | getY () |
| double | getScaleX () |
| double | getScaleY () |
| double | getWidth () |
| double | getHeight () |
| void | whenClicked (Runnable action) |
| void | whenScaleChanged (java.util.function.BiConsumer< Double, Double > action) |
| boolean | containsPoint (int mx, int my) |
| void | handleMouseClick (int mx, int my) |
| void | handleScaleChange (double oldScale, double newScale) |
| void | draw (Graphics2D g) |
| double | width () |
| double | height () |
| void | setScaleX (double sx) |
| void | setScaleY (double sy) |
| Rectangle | getBounds () |
| void | move (double steps) |
| void | turnRight (double deg) |
| void | turnLeft (double deg) |
| void | pointInDirection (double dir) |
| void | goTo (double x, double y) |
| void | changeXBy (double dx) |
| void | changeYBy (double dy) |
| void | glide (double sec, double tx, double ty) |
| void | goToRandomPosition () |
| void | ifOnEdgeBounce () |
| void | setEffect (String effect, double value) |
| void | changeEffectBy (String effect, double amount) |
| void | clearGraphicsEffects () |
| void | say (String text) |
| void | say (String text, double sec) |
| void | switchCostume (String n) |
| void | nextCostume () |
| void | setSize (double s) |
| void | changeSizeBy (double a) |
| void | show () |
| void | hide () |
| boolean | isVisible () |
| void | addCostume (Costume c) |
| boolean | isTouching (Sprite o) |
| boolean | isTouchingColor (Color c) |
| void | setRotationStyle (RotationStyle s) |
| Object | getVariable (String name) |
| | ScratchObject (String name) |
| String | getName () |
| void | setVariable (String name, Object value) |
| double | getVariableAsNumber (String name) |
| String | getVariableAsString (String name) |
| String | answer () |
| void | changeVariableBy (String name, double amount) |
| List< Object > | getList (String name) |
| void | addToList (String listName, Object item) |
| void | deleteFromList (String listName, int index) |
| Object | itemOfList (String listName, int index) |
| int | pickRandom (int min, int max) |
| String | join (Object a, Object b) |
| String | letterOf (int index, String text) |
| int | lengthOf (String text) |
| void | startScript (Runnable script) |
| void | broadcast (String message) |
| void | whenIReceive (String message, Runnable action) |
| void | whenKeyPressed (int keyCode, Runnable action) |
| void | waitTillNextFrame () |
| void | wait (double sec) |
| void | playSound (String soundPath) |
| void | stopAllSounds () |
| void | setVolume (double percent) |
Definition at line 3 of file Player.java.