java.lang.Object
com.csse3200.game.minigames.birdiedash.entities.Spike

public class Spike extends Object
Class for the spikes in the birdie dash game
  • Constructor Details

    • Spike

      public Spike(float position)
  • Method Details

    • getPosition

      public com.badlogic.gdx.math.Vector2 getPosition()
      Get the spikes position
      Returns:
      the spikes position
    • getWidth

      public float getWidth()
      Get the spikes width
      Returns:
      the spikes width
    • getHeight

      public float getHeight()
      Get the spikes height
      Returns:
      the spikes height
    • getSpikeBoundary

      public com.badlogic.gdx.math.Rectangle getSpikeBoundary()
      Ge the spikes boundary
      Returns:
      the spikes boundary