Fruit - Stav-Nof/The-Maze-of-Waze-part3 GitHub Wiki

This class represents the pokeballs on the graph.

There are two type of pokeballs in the game, the difference between the pokeballs is the colors. The robot can only collect blue pokeballs when it comes from the high vertex to the low vertex. And the red pokeballs can only be collected when it comes from the low vertex to the high vertex.


Fruit class methods:

  • getLocation- return the location of the pokeball on the graph. (Point3D).
  • getImage- return the image of the red/blue pokeball.