[−][src]Module spacebattleship::ships
Types used for defining ships and their shapes.
Structs
Line | A linear ship shape, with a given length. |
ProjectIter | Iterator over possible projections of a ship shape onto dimensions. |
Traits
ProjectIterState | State type for the ship projection iterator. |
ShipId | Trait for types that can be used as a Ship's ID within a single player's board.
IDs are treated as disposable and cheaply cloneable. If you need a complex ID type
that isn't cheap to clone, you may want to wrap it in |
ShipShape | Trait for shapes that a ship can be. |
Type Definitions
ShapeProjection | Projection of a shape onto a coordinate system relative to a particular point. This is
a simple typedef of a |