Skip to content

gui Package

AmitSheer edited this page Dec 19, 2020 · 6 revisions

Structure

Package gui

gui Package Classes

  • 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

General Description of Methods, Divided by Class

  • MyFrame

    • startGame(int scenario,int id)
      starts the game with scenario and 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
  • GameInputPanel
    Reads the data from the user input data

Clone this wiki locally