Documentation ¶
Index ¶
Constants ¶
View Source
const ( TILEOFFSET = -1 // odd rows TILESIZE = 44.0 TILESIZEX = TILESIZE TILESIZEY = TILESIZE TILEWIDTH = 2 * TILESIZE )
Variables ¶
View Source
var (
TILEHEIGHT = math.Sqrt(3) * TILESIZE
)
Functions ¶
This section is empty.
Types ¶
type Orientation ¶
type Orientation struct {
// contains filtered or unexported fields
}
Orientation stores the forward matrix (the fN variables) and backward matrix (the bN variables), plus the start angle. The start angle determines if we have a "flat top" (which is 0°) or "pointy top" (which is 60°) hex.
type Tile ¶
type Tile struct {
Row, Col int // map tile we're inside
City int
Depth int
Gates []*Gate
Inside int
Mark int
Name string
Region string
Roads []*Road
SaveChar rune
SummerbridgeFlag int
Subs []int
UldimFlag int
Is struct {
Hidden bool
MajorCity bool
RegionBoundary bool
SafeHaven bool
SeaLane bool
Water bool
}
Color enums.Color // map coloring for output
Terrain enums.Terrain
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.