Module lib_battleship::common [] [src]

Common types, functions, etc.

Structs

ShipType

Represents a ship type in the game.

Enums

CellStatus

The (display) states a cell on the battlefield can have.

Orientation

The possible orientations of a ship in the game.

Player

Enum for the players.

Traits

Dimensional

Denotes a struct that has a width and height of type Dimension.

ShipTypeContainer

Denotes a type that holds ship types.