Package engine.util
Class Animation
java.lang.Object
engine.util.Animation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate intprivate booleanprivate floatprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanimate(processing.core.PApplet app, processing.core.PImage image, float x, float y, int width, int height, float scale, int frameStart, int frameEnd, int frame, boolean changeAnimation, boolean resetIndex) voidanimate(processing.core.PApplet app, processing.core.PImage image, float x, float y, int width, int height, int scale, int frameStart, int frameEnd, int frame, boolean changeAnimation) voidanimateLegsRun(processing.core.PApplet app, float centerX, float centerY, float floorY) voidanimateLegsRun(processing.core.PApplet app, float centerX, float centerY, float floorY, float radiusX, float radiusY, float length, float offsetX, float offsetY, int res, float thickness, float speed, float jump, float lengthQuotent, int[] color1, int[] color2) voidanimateLegsRun(processing.core.PApplet app, float centerX, float centerY, float floorY, float radiusX, float radiusY, float length, float offsetX, float offsetY, int res, float thickness, float speed, float jump, float lengthQuotent, int[] color1, int[] color2, boolean faceRight) voidanimateLegsRun(processing.core.PApplet app, float centerX, float centerY, float floorY, float radiusX, float radiusY, float length, float offsetX, float offsetY, int res, float thickness, float speed, float jump, float lengthQuotent, int[] color1, int[] color2, boolean faceRight, boolean showShadow) voidanimateLegsRun(processing.core.PApplet app, float centerX, float centerY, float floorY, float radiusX, float radiusY, float length, float offsetX, float offsetY, int res, float thickness, float speed, float jump, float lengthQuotent, int[] color1, int[] color2, boolean faceRight, boolean showShadow, boolean showHitbox) voidanimateNew(processing.core.PApplet app, processing.core.PImage image, float x, float y, int width, int height, int scale, int frameStart, int frameEnd, int frame, boolean changeAnimation) voidanimateNew(processing.core.PApplet app, processing.core.PImage image, float x, float y, int width, int height, int scale, int frameStart, int frameEnd, int frame, boolean changeAnimation, boolean resetIndex) intintgetIndex()intbooleanfloatintintstatic void
-
Field Details
-
lastFrame
private boolean lastFrame -
index
private int index -
frameIndex
private int frameIndex -
indexCount
private int indexCount -
totalFrames
private int totalFrames -
timeRun
private int timeRun -
timeIncrease
private float timeIncrease
-
-
Constructor Details
-
Animation
public Animation() -
Animation
public Animation(float timeIncrease)
-
-
Method Details
-
animate
public void animate(processing.core.PApplet app, processing.core.PImage image, float x, float y, int width, int height, float scale, int frameStart, int frameEnd, int frame, boolean changeAnimation, boolean resetIndex) -
animate
public void animate(processing.core.PApplet app, processing.core.PImage image, float x, float y, int width, int height, int scale, int frameStart, int frameEnd, int frame, boolean changeAnimation) -
animateNew
public void animateNew(processing.core.PApplet app, processing.core.PImage image, float x, float y, int width, int height, int scale, int frameStart, int frameEnd, int frame, boolean changeAnimation, boolean resetIndex) -
animateNew
public void animateNew(processing.core.PApplet app, processing.core.PImage image, float x, float y, int width, int height, int scale, int frameStart, int frameEnd, int frame, boolean changeAnimation) -
leaveTrails
public static void leaveTrails() -
animateLegsRun
public void animateLegsRun(processing.core.PApplet app, float centerX, float centerY, float floorY, float radiusX, float radiusY, float length, float offsetX, float offsetY, int res, float thickness, float speed, float jump, float lengthQuotent, int[] color1, int[] color2, boolean faceRight, boolean showShadow, boolean showHitbox) -
animateLegsRun
public void animateLegsRun(processing.core.PApplet app, float centerX, float centerY, float floorY, float radiusX, float radiusY, float length, float offsetX, float offsetY, int res, float thickness, float speed, float jump, float lengthQuotent, int[] color1, int[] color2, boolean faceRight, boolean showShadow) -
animateLegsRun
public void animateLegsRun(processing.core.PApplet app, float centerX, float centerY, float floorY, float radiusX, float radiusY, float length, float offsetX, float offsetY, int res, float thickness, float speed, float jump, float lengthQuotent, int[] color1, int[] color2, boolean faceRight) -
animateLegsRun
public void animateLegsRun(processing.core.PApplet app, float centerX, float centerY, float floorY, float radiusX, float radiusY, float length, float offsetX, float offsetY, int res, float thickness, float speed, float jump, float lengthQuotent, int[] color1, int[] color2) -
animateLegsRun
public void animateLegsRun(processing.core.PApplet app, float centerX, float centerY, float floorY) -
getLastFrame
public boolean getLastFrame() -
getIndex
public int getIndex() -
getFrameIndex
public int getFrameIndex() -
getIndexCount
public int getIndexCount() -
getTimeRun
public int getTimeRun() -
getTotalFrames
public int getTotalFrames() -
getTimeIncrease
public float getTimeIncrease()
-