Difference between revisions of "Generic Tile Definitions"

From BlogNomic Wiki
Jump to navigation Jump to search
(starting a foundation. square seems like it could be shorter and simpler given some thought. not sure how to define those pixel circles)
 
(→‎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)
Line 9: Line 9:
  
 
The following definitions also apply:
 
The following definitions also apply:
;Adjacent: two Tiles are Adjacent if their Column is equal and their Row differs by only 1, or their Row is equal and their Column differs by only 1.
+
;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.
;Nearby: two tiles are Nearby if both their Columns and Rows differ by only 1.
+
;Level: two different Tiles, A (X, Y) and B (P, Q), are Level if X = P or Y = Q.
;Next: two tiles are Next to each other if they are Adjacent but not Nearby.
+
;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.
 
;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.
 
;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.
 
;Distance: the absolute difference between two Tile's Rows plus the absolute difference between their Column.
;Square Z: The Edge Tiles of particular Square, given a Center Tile, have either a Row or a Column equal to the Center Tile's Row or Column plus or minus Z and the other index has an absolute difference less than that index for the Center Tile plus or minus Z. Inner Tiles of a Square are such that their Column is between two Edge Tile's Columns and their Row is between two Edge Tile's Rows.
+
;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.

Revision as of 01:11, 30 October 2020

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.