This project is devided into two: first part concern of building a weighted and directed graph, while the second part focuses on a game which uses the first part.
- NodeData
- EdgeData
- Geo_Location
- NodeData_Json
- NodeForHeap
- DWGraph_DS
- DWGraph_Algo
- DWGraph_DSJsonDeserializer
This class represents a node in a graph. Each node has its own weight, id and location in a 2 dimensional space. Inner class in DWGraph_DS.
This class representsan edge in a graph. Each EdgeData object has a source and destination node and weight. Inner class in DWGraph_DS.
A Geo_Location object has 3 parameters: x, y, and z. this parameters help locating a node in the 3 dimensional space (in this assignment, 2 dimensional space). Inner class in DWGraph_DS.
This class is used to save & load the graph in Json format. Inner class in DWGraph_DS.
This class represents a Node that hold distance and Node that object used by the "dijkstra algorithm". Inner class in DWGraph_DS.
This class represents a directional weighted graph. Each graph builds from nodes that are connected by edges objects. Implements directed_weighted_graph interface.
This class holds a collection of more complex methods for DWGraph_DS object. To run a method, one must creat a DWGraph_Algo instance, and initiating it with DWGraph_DS object using init method.
This class used in order to deserialize Json's graph object. Using this class enable performing deserialization of interface implementation classes.
This class represents a multi Agents Arena which move on a graph and grabs Pokemons. Given class from OOP course.
This class represents an agent that runs on the graph and catches pokemons.
This class represents a pokemon in the game.
This class is the main class in the second part, which its main method the game starts.
This class represents a specific adapted JFrame to this project.
This class represents a specific adapted JPanel to this project.
This class represents a specific adapted JLabel to this project.
- Go to src->gameClient.
- Run Ex2.
- In the poping window, enter your id and the wanted level.
- Press enter.