Class ObjectAffected

java.lang.Object
engine.entity.Move
engine.entity.movement.ObjectAffected

public class ObjectAffected extends Move
  • Field Details

    • x

      private float x
    • y

      private float y
    • w

      private float w
    • h

      private float h
  • Constructor Details

    • ObjectAffected

      public ObjectAffected(float x, float y, float w, float h)
  • Method Details

    • move

      public void move(Entity e)
      Specified by:
      move in class Move
    • getX

      public float getX()
      Specified by:
      getX in class Move
    • getY

      public float getY()
      Specified by:
      getY in class Move
    • getW

      public float getW()
      Specified by:
      getW in class Move
    • getH

      public float getH()
      Specified by:
      getH in class Move
    • getS

      public float getS()
      Specified by:
      getS in class Move
    • getSW

      public float getSW()
      Specified by:
      getSW in class Move
    • getSH

      public float getSH()
      Specified by:
      getSH in class Move
    • get

      public Move get()
      Specified by:
      get in class Move
    • getPoint

      public Point getPoint()
      Specified by:
      getPoint in class Move
    • getMoveType

      public Moves getMoveType()
      Specified by:
      getMoveType in class Move
    • setDir

      public void setDir(int d)
      Specified by:
      setDir in class Move
    • dirChanged

      public boolean dirChanged()
      Specified by:
      dirChanged in class Move
    • setIdle

      public void setIdle(boolean i)
      Specified by:
      setIdle in class Move
    • getDir

      public int getDir()
      Specified by:
      getDir in class Move
    • getIsIdle

      public boolean getIsIdle()
      Specified by:
      getIsIdle in class Move