Add rover parts to the cmdline pretty printer

This commit is contained in:
Marc Di Luzio 2020-08-02 11:28:14 +01:00
parent 636f0ed773
commit 6a44633d40

View file

@ -25,6 +25,9 @@ const (
// GlyphRoverDormant represents a dormant rover // GlyphRoverDormant represents a dormant rover
GlyphRoverDormant = Glyph('r') GlyphRoverDormant = Glyph('r')
// GlyphRoverParts represents spare rover parts
GlyphRoverParts = Glyph('*')
// GlyphRockSmall is a small stashable rock // GlyphRockSmall is a small stashable rock
GlyphRockSmall = Glyph('o') GlyphRockSmall = Glyph('o')
@ -58,6 +61,8 @@ func ObjectGlyph(o roveapi.Object) Glyph {
return GlyphRoverDormant return GlyphRoverDormant
case roveapi.Object_RockLarge: case roveapi.Object_RockLarge:
return GlyphRockLarge return GlyphRockLarge
case roveapi.Object_RoverParts:
return GlyphRoverParts
} }
log.Fatalf("Unknown object type: %c", o) log.Fatalf("Unknown object type: %c", o)