Class Ball

java.lang.Object
org.drools.games.pong.Ball

public class Ball extends Object
  • Constructor Details

    • Ball

      public Ball(int x, int y, int width)
  • Method Details

    • getY

      public int getY()
    • setY

      public void setY(int y)
    • getX

      public int getX()
    • setX

      public void setX(int x)
    • getWidth

      public int getWidth()
    • setWidth

      public void setWidth(int width)
    • getDx

      public int getDx()
    • setDx

      public void setDx(int dx)
    • getDy

      public int getDy()
    • setDy

      public void setDy(int dy)
    • getSpeed

      public int getSpeed()
    • setSpeed

      public void setSpeed(int speed)
    • toString

      public String toString()
      Overrides:
      toString in class Object