This class build single edge.
An object from class Edge contain the follow feature:
- Src - the key of tne node that represent the source.
- Dest - the key of tne node that represent the destination.
- Tag - its flag that change when pass on edge.
- Weight - how much cost to pass on this edge in the path.
- Info.
This class build single node. An object from class Node contain the follow feature:
- Key - it the ID of this node in the graph.
- Tag - its flag that change when pass on node.
- Weight - it represent the cost of the path that take to get from Src to this node that represent the Dest.
- Location - represent the locatiobn of the node on the axis - X, Y, Z.
- Info
This class build a graph that defined by nodes and edges. It contain a collection of node with use in Node Class and collection of edge with use in Edge Clas.
An object from class DGraph contain the follow feature:
- nodes - is a collection of HashMap of nodes in the graph.
- edges - is a collection of HashMap of edges in the graph.
- nodesCount - is count of the nodes in the graph
- edgesCount - is count of the edges in the graph
- modeCount - is a count of the changes that implement on the graph.
This class build single fruit. An object from class Fruits contain the follow feature:
- Pos - represent the locatiobn of the fruit on the axis - X, Y, Z.
- Value - represent the point that the fruit is worth.
- Type - represent if the fruit is Banana or Apple.
- Pic - represent the picture of the fruit (Banana orApple).
- destFruit - represent the deatination of the robot
An object from the FruitsList class is a collection of Fruits. In order to realize a FruitsList we used the LinkedList class where each node contains fruit.
An object from class FruitsList contain the follow feature:
- frutis - represent the list of the fruits.
- AmountFruits - represents the amount of fruit.
- numGame - represent the specific game service.
This class build single robot. An object from class Robots contain the follow feature:
- Pos - represent the locatiobn of the robot on the axis - X, Y, Z.
- Value - represents the points earned by the robot.
- Id - represent the ID of the robot
- Pic - represent the picture of the robot (in our case Moneky).
- Dest - represent the destination node that the robot go to.
- Speed - represent the speed of the robot.
An object from the RobotsList class is a collection of Robots. In order to realize a RobotsList we used the LinkedList class where each node contains robot object.
An object from class RobotsList contain the follow feature:
- robots - represent the list of the robots.
- AmountRobots - represents the amount of robots.
- numGame - represent the specific game service.
In this class we solved a algorithmic problems as - What is the shortest path in the graph, does the graph is a connective graph, how to read graph from file and how save graph as file.
An object from class Graph_Algo contain the follow feature:
- graph - this is the graph that we perform the algorithms on.
In this class we solved a algorithmic problems as - What is the best fruit eating strategy.
This class represent the Automatic game.
An object from class Graph_Algo contain the follow feature:
- GraphGame - is the graph taht represent the route of the game.
- fruits - represent the list of the fruits in the current game.
- server - the game service of current game.
- numOfRobot - the amount of the robots in the current game.
This class there are functions that are responsible for the operation of the game.
This class represent the Manual game.
For example, how all the method work when the game is running.
An object from class MyGameGUI contain the follow feature:
- fruits - represent the list of the fruits in the current game.
- GraphGame - is the graph taht represent the route of the game.
- g - represent the GUI object for drawing the game.
- server - the game service of current game.
- game_algo - represent an object from the Game_ALgo class for used the algoritems.
- b - boolean variable for help in calculating functions.
- manual - boolean variable for help in calculating functions.
- auto - boolean variable for help in calculating functions.
- r
This class make a KML-file that in the end of the game the user can see his game on Google Earth application.
This class responsible for drawing all game data to user with help class STDraw.