Game Models
-
This class refers to the main game grid. It contains a 2-D array of smaller grids, called
BattleGround
sNote
ThebattleGrounds
array is not mutable. This is because eachBattleGround
is unique and does not need to change.Declaration
Swift
public class Grid
-
This enum represents the different states that each indivudal tile within a battleground can have.
See moreDeclaration
Swift
enum Tile: String, QueryItemRepresentable, TileProtocol
-
This protocool exists to allow for
See moreQueryItemRepresentable
to work properly withTile
, as well as to provide additional properties forTile
Declaration
Swift
protocol TileProtocol
-
Types that conform to the QueryItemRepresentable protocol must implement properties that allow it to be saved as a query item in a URL.
See moreDeclaration
Swift
protocol QueryItemRepresentable