Game Models
-
This class refers to the main game grid. It contains a 2-D array of smaller grids, called
BattleGroundsSee moreNote
ThebattleGroundsarray is not mutable. This is because eachBattleGroundis 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 moreQueryItemRepresentableto work properly withTile, as well as to provide additional properties forTileDeclaration
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
View on GitHub
Game Models Reference