This Method first checks if a game is in progress, if so it checks if the
gameState of the BoardManager is in place mode, and that redUnitsToPlace,
and blueUnitsToPlace are empty, if so then it changes the game phase to play
and calls the playGame() method in BoardManager
This Method first checks if a game is in progress, if so it asks the user if
they want to forfeit, running the player2Win() method if they respond with a yes,
and does nothing otherwise, if no game is in progress or if the player quit it,
this method then exits the program.
This Method sets the active log to the given file, throwing a FileNotFound
exception if it is not found, or a IOException if it is improperly formatted
This Method prompts the user for an account name, then searches the account
log file for the account, setting it as the active account if it is found
returning a IOException if it is not found.
This method checks the gameState of the BoardManager, selects a square
and attempts to place a unit if it is a left click during the Place state,
removes a unit if it is a right click during the Place state,selects a square
and unit if it is in the Play state, and does nothing during any other state.
This method checks the gameState of the BoardManager,and attempts to
move a unit if it is in the Place state, attempts to move a unit according
to the rules and ending the players turn if it is in the Play state,
and does nothing during any other state
This Method first checks if a game is in progress, if so it asks the user if
they want to forfeit, running the player2Win() method if they respond with a yes,
and does nothing otherwise, if no game is in progress or if the player quit it,
this method then calls the BoardManager newGame() method.
This Method prompts the user for which unit to place in the selected square
placing and removing it from the UnitsToPlace Vector it if possible,
notifying the user why not otherwise
This Method calls the loadLog(File) method in GameplayLogManager, passing the
log file, it then repeats the actions of the log via appropriate method calls
on the BoardManager
This class handles the rendering of the other frames, the passing of methods between
MenuHandler, BoardManager, and GameplayLogManager, in other words it is a middle-man
This class manages data for a single piece including; it's rank,
what rank to display, rank-related information, which image to use,
and what textual name to use for the piece
This Method prompts the user for a replay file name,and calls the StrategoGame
classes show replay file with that as an argument if it is found
else, returning a FileNotFoundException if it is not found.