My Game Gui Class - Ariel-David/The-Maze-Of-Waze GitHub Wiki
In this class all the painting methods take place here.
After updating the graph from json file throu the JSON_UPDATES class,
it draws all the aspects of the game: Robots, fruits, canvas, edges and nodes.
It also shows the current time, score and details of the game.
private void paint()
public MyGameGUI()
private void init(graph g)
private void initMyGui()
private void drawGraph()
public void updateGraphAuto()
public void updateGraphManual()
private double getXmin()
private double getXmax()
private double getYmin()
private double getYmax()
private void setScale()
private void drawVertex()
private void drawKey()
private void drawEdges()
private void drawDirection()
private void drawEdgesWeight()
private void drawFruits()
private void drawFruitsManual()
public static int getRobotNumber()
private static double distance(Point3D src, Point3D dest)
public static double shortestPathDist(int src, int dest)
public static void shortestPathDistHelper(int src, int dest, String s)
public static List<node_data> shortestPath(int src, int dest)
public void printScore(game_service game)
public static DGraph getGraph()
public static void setGraph(DGraph graph)
public static game_service getGame()
public static void setGame(game_service game)
public static double getEpsilon()
public static void setEpsilon(double epsilon)
public KML_Logger getKml()
public void setKml(KML_Logger kml)
public Thread getT()
public void setT(Thread t)