-
Notifications
You must be signed in to change notification settings - Fork 0
gui Package
AmitSheer edited this page Dec 19, 2020
·
6 revisions
- MyFrame
extends on Javas already existing JFrame class - GamePanel
extends on JPanel class. Used to showcase the scenario running and other useful data. - GameStatus
Holds Game Data, time to end and others - GameInputPanel
extends JPanel. Allows user to input the scenario to run
-
MyFrame
-
startGame(int scenario,int id)
starts the game with scenario and id
-
startGame(int scenario,int id)
-
GamePanel
-
startGame(int scenario,int id,boolean isCloseWhenDone)
starts game with scenario and id, and tells it if the frame will close after you finish the game run -
update(GameManager gm)
updates game data holder/manager
-
startGame(int scenario,int id,boolean isCloseWhenDone)
-
GameInputPanel
Reads the data from the user input data