Package engine.util

Class Animation

java.lang.Object
engine.util.Animation

public class Animation extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private int
     
    private int
     
    private boolean
     
    private float
     
    private int
     
    private int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Animation(float timeIncrease)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
     
    void
    animateLegsRun(processing.core.PApplet app, float centerX, float centerY, float floorY)
     
    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)
     
    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)
     
    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)
     
    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)
     
    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)
     
    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)
     
    int
     
    int
     
    int
     
    boolean
     
    float
     
    int
     
    int
     
    static void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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()