Fruit - VadimKachevski/OOP_Ex3 GitHub Wiki
Fruit
This class implements the fruitInterface interface and does not have any addition functions to this interface.
A Fruit is represented by these elements:
static double EPS = 0.0000001;
graph g – a graph which the fruit belongs to.
edge_data edge – represents the edge that related to this fruit.
Point3D pos – represents the position of the fruit.
int value – represents the value of the Fruit.
int type – type is represented by -1 or 1 value which defines the direction of the fruit.
boolean occupied=false – represents if the fruit is occupied (will assist us to know if any robot is on its way to this fruit).