Class Course


  • public class Course
    extends java.lang.Object
    Represents the race course.
    • Constructor Summary

      Constructors 
      Constructor Description
      Course​(com.badlogic.gdx.graphics.Texture texture, Lane[] lanes)
      Creates a course instance for all the boats.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getNoLanes()  
      com.badlogic.gdx.graphics.Texture getTexture()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lanes

        public Lane[] lanes
      • startY

        public int startY
      • finishY

        public int finishY
      • leftBoundary

        public int leftBoundary
      • rightBoundary

        public int rightBoundary
      • texture

        public com.badlogic.gdx.graphics.Texture texture
    • Constructor Detail

      • Course

        public Course​(com.badlogic.gdx.graphics.Texture texture,
                      Lane[] lanes)
        Creates a course instance for all the boats.
        Parameters:
        texture - Texture asset for the course.
        lanes - Array of lane objects for the course.
    • Method Detail

      • getTexture

        public com.badlogic.gdx.graphics.Texture getTexture()
        Returns:
        Texture for the course (background image).
      • getNoLanes

        public int getNoLanes()
        Returns:
        Int representing the number of lanes in the course.