Class Spike
java.lang.Object
com.csse3200.game.minigames.birdiedash.entities.Spike
Class for the spikes in the birdie dash game
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the spikes heightcom.badlogic.gdx.math.Vector2
Get the spikes positioncom.badlogic.gdx.math.Rectangle
Ge the spikes boundaryfloat
getWidth()
Get the spikes width
-
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
-