JScratch
Loading...
Searching...
No Matches
com.burrbox.dndiablo.DndEntity Class Reference
Inheritance diagram for com.burrbox.dndiablo.DndEntity:
com.jscratch.Sprite com.jscratch.ScratchObject com.burrbox.dndiablo.Player

Public Member Functions

 DndEntity (String name)
Public Member Functions inherited from com.jscratch.Sprite
 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)
Public Member Functions inherited from com.jscratch.ScratchObject
 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)

Public Attributes

DndCharacterStats stats
int worldX
int worldY

Additional Inherited Members

Static Public Member Functions inherited from com.jscratch.Sprite
static BufferedImage createPlaceholder (Color c, int w, int h)
Protected Member Functions inherited from com.jscratch.ScratchObject
double castToDouble (Object o)
String castToString (Object o)
Protected Attributes inherited from com.jscratch.ScratchObject
String name
Map< String, Object > variables = new ConcurrentHashMap<>()
Map< String, List< Object > > lists = new ConcurrentHashMap<>()
double volume = 100
List< Thread > activeScripts = new CopyOnWriteArrayList<>()

Detailed Description

Definition at line 9 of file DndEntity.java.

Constructor & Destructor Documentation

◆ DndEntity()

com.burrbox.dndiablo.DndEntity.DndEntity ( String name)

Definition at line 15 of file DndEntity.java.

Member Data Documentation

◆ stats

DndCharacterStats com.burrbox.dndiablo.DndEntity.stats

Definition at line 10 of file DndEntity.java.

◆ worldX

int com.burrbox.dndiablo.DndEntity.worldX

Definition at line 11 of file DndEntity.java.

◆ worldY

int com.burrbox.dndiablo.DndEntity.worldY

Definition at line 12 of file DndEntity.java.


The documentation for this class was generated from the following file: