Generic Tile Definitions

From BlogNomic Wiki
Revision as of 01:11, 30 October 2020 by Card (talk | contribs) (→‎Definitions: i may have introduced too much mathematical notation. anyways, Levelly Adjacent and Diagonally Adjacent should work as rule phrases. I looked up the formula for a pixel circle and replicating it faithfully required too much math)
Jump to navigation Jump to search

Preface

the goal of this page is to iron out definitions to generically talk about grids in the context of a blognomic dynasty. inevitably in the few dynasties i have participated in when a dynasty uses grids, a lot of effort is put to perfect and define the definitions to talk about grids, tiles and their relationships. these definitions need to sit in the ruleset but at least can be copied if need be. additionally the generic terms can have an additional rule stating "distance is synonymous to [flavorful dynasty specific word]" similar to the "The terms “Monk” and “Player” are synonyms." present in the Appendix or by changing the terms in the proposal to introduce those definitions.

Definitions

The Table is an X by Y grid of Tiles tracked on the Z wikipage.

Each Tile has a Row and a Column, that cannot change and are positive non-zero integers. A particular Tile can be referred to by "Tile (Row, Column)". The top left Tile of the Grid has a Row and Column of 1 and it is known as the Origin Tile. Tiles' Row and Column increase sequentially from the Origin Tile.

The following definitions also apply:

Adjacent
two different Tiles, A (X, Y) and B (P, Q) are Adjacent if X = P and the absolute value of Y - Q = 1. Or Y = Q and the absolute value of X - P = 1.
Level
two different Tiles, A (X, Y) and B (P, Q), are Level if X = P or Y = Q.
Diagonal
two different Tiles, A and B, are Diagonal if A (X, Y) - B (P, Q) = (N, M) and the absolute values of N and M are equal.
Index
the Row or Column of a Tile.
Pair
a Pair is a Row and Column direction, represented in the format "(R, C)" where R and C are integers.
Math
Tiles can be added or subtracted, which yields a Pair. Tiles can also be added to or subtracted from a Pair, which yields a Tile. If the indices of a Tile resulting from adding or subtracting would be 0 or less it instead becomes 1. Example: A (N, M) - B (P, Q) = (N - P, M - Q). C (4, 8) - (6, -2) = (1, 10).
Surrounded
a Tile that is Adjacent to eight other tiles.
Distance
the absolute difference between two Tile's Rows plus the absolute difference between their Column.
Rectangle
Given two Tiles, A (X, Y) and B (P, Q) and X < P and Y < Q, as the corners of the Rectangle, the following applies: Edge Tiles have either a Row that is equal to X or P or a Column that is equal to Y or Q. Corner tiles have a Row that is equal to X or P and a Column that is equal to Y or Q. Inner Tiles (I, J) are such that X < I < P and Y < J < Q.
Diamond
Given a Center Tile and a radius, Center (X, Y) and R and R > 0, the following applies: Edge Tiles have a Distance of R from Center. Inner tiles have a distance less than R from Center.
Inverse
Two Tiles, A (X, Y) and B (P, Q), are Inverse of each other if Q = X and P = Y.