Move glyph definitions into a central type

This commit is contained in:
Marc Di Luzio 2020-07-19 11:46:37 +01:00
parent 0e731df1a3
commit a0b811a659
3 changed files with 34 additions and 7 deletions

27
pkg/atlas/glyph.go Normal file
View file

@ -0,0 +1,27 @@
package atlas
// Glyph represents the text representation of something in the game
type Glyph byte
const (
// GlyphNone is a keyword for nothing
GlyphNone = Glyph(0)
// GlyphRock is solid rock ground
GlyphRock = Glyph('-')
// GlyphGravel is loose rocks
GlyphGravel = Glyph(':')
// GlyphSand is sand
GlyphSand = Glyph('~')
// GlyphRover represents a live rover
GlyphRover = Glyph('R')
// GlyphSmallRock is a small stashable rock
GlyphSmallRock = Glyph('o')
// GlyphLargeRock is a large blocking rock
GlyphLargeRock = Glyph('O')
)