Class BallComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.minigame.BallComponent

public class BallComponent extends Component
  • Constructor Details

    • BallComponent

      public BallComponent(com.badlogic.gdx.scenes.scene2d.ui.Image ballImage, float velocityX, float velocityY)
  • Method Details

    • getImage

      public com.badlogic.gdx.scenes.scene2d.ui.Image getImage()
    • getScore

      public int getScore()
    • update

      public void update(float delta)
    • reverseY

      public void reverseY()
    • getBallsHit

      public int getBallsHit()
    • getVelocityX

      public float getVelocityX()
    • getVelocityY

      public float getVelocityY()