|
Class Summary |
| Battleship |
Battleship.java
Handles the game. |
| BShip |
BShip.java
Represents a battleship. |
| Client |
Client.java
Holds the default properties of the client and carries out the
client connection. |
| CommandHandler |
CommandHandler.java
The purpose of this class is to receive a command from the player, parse
it in order to spot any mistakes or incompatibilities with the protocol
and then send it back to the user in the correct format. |
| Coordinate |
Coordinate.java
This class defines a coordinate (x,y). |
| Destroyer |
Destroyer.java
Represents the surface ship Destroyer. |
| Fleet |
Fleet.java
Represents the fleet of each player. |
| Game |
Game.java
Cooperates with the Battleship class and handles the different phases
of the game. |
| Grid |
Grid.java
Holds a collection Coordinates that form a grid. |
| Handler |
Handler.java
The superclass for handling user commands. |
| Host |
Host.java
Represents the host of the game. |
| MessageHandler |
Receives a message from the socket stream. |
| Player |
Player.java
Represents a player of the game. |
| PrintMsg |
PrintMsg.java
Used for printing messages. |
| Ship |
Ship.java
Represents a ship of the game. |
| Submarine |
Submarine.java
Represents a submarine in the game. |
| SurfaceShip |
SurfaceShip.java
This abstract class represents a surface ship. |