MyGameGUI - dean985/taxiDriver GitHub Wiki
MyGameGUI
This class is managing the UI
myGameGUI(int scenario_num)
- initialize the game with scenario number.
drawGraph()
- Paints the graph (nodes and edges)
update
- Updates the cars and gifts location.
fruitsToEdges(gameFruits fruits)
- This method adds gift to a list inside each edge. That results in a list for every edge containing the Fruit s on edge.
nextNode2(game_service game, gameFruits fruits, graph graph, int robot_id, int node_src)
- The method to find the next key node.
In the main
method where the game is being run from we are using Thread.sleep
in order to create delay.