Module floor
rust_warrior
contains types that represent the topology of a level
Each level has a Floor with a predefined width and height, stairs positioned at the exit, and one or more units. There is a player-controlled Warrior unit for every level.
Floor
width
height
stairs
units
Warrior
The Floor::tile method constructs a conceptual representation of the floor using the Tile enum.
Floor::tile
Tile