User Manual - Graphic User Interface
1. Initialization
Make sure that BattleshipsClient_Skel.class and BattleshipsClient_Stub.class
exist and are in the current working directory. (ie. C:\battleships) If not,
please refer to the README file for how to create them, using Java's RMI compiler.
Also, make sure that the server is running on an accessable machine.
Next, start the client. To do this, either use the included "client.bat"
to start it, or run directly from the command-line.
Eg: java -Djava.security.policy=file:/C:/battleships/My.policy BattleshipsClient
2. Starting a new game
Select (Start New Game) from the Game Selection menu.
Enter game name.
Enter Y or N if you would like to limit the game by the number of turns.
If Y, then enter the maximum number of turns.
The system will wait until another player joins the game.
3. Starting a previously saved game
Select (Start Saved Game) from the Game Selection menu.
Enter the number of the game that you want to play.
The system will wait until another player joins the game.
4. Joining an existing game
Select (Join Game) from the Game Selection menu.
Enter the number of the game that you want to join.
The game will begin...
5. Firing a weapon
To fire a weapon you have to click on a ship first. Then from the submenu select Fire Torpedo or Fire Gun
Select a weapon to fire.
NOTE: If the currently selected ship can fire a gun and torpedo, a menu will show up asking you to select which to fire.
If the selected ship is capable of dropping/picking up mines this will be the option.
Torpedo: A torpedo will be fired from the bow of the ship.
Gun: A menu will give the player the option to choose a specific square to fire upon.
Mine: A menu will give the player the option to choose a specific square to place the mine.
6. Moving a Ship
To move a ship you have to click on a ship first. Then from the submenu select Move or Turn
Select a square to move.
NOTE: If the path to the selected location is blocked by anything the ship will move up to the blocked square.
If the player selects turn and there is an object blocking the turning radius the turn will not take place.
7. Repair
To Repair a Ship or Base you have to click on your base. Then from the submenu select whether to repair a ship or the base itself.
NOTE: A ship must be docked along a base to be repaired.
The base has to be atleast half undamaged to repair ships.
Repairing a Base:
If 4 or less undamaged squares remain the player may only repair the base.
Repairing a Ship:
If the base has at least 5 undamaged squares, then a damaged/destroyed square on the ship will be fixed.