package soko type EntityType byte const ( EntityTypeInvalid EntityType = EntityType(0) EntityTypeNone = '_' EntityTypePlayer = '@' EntityTypeTarget = 'X' EntityTypeBrick = 'B' ) func (e EntityType) IsValid() bool { switch e { case EntityTypeNone: case EntityTypePlayer: case EntityTypeTarget: case EntityTypeBrick: default: return false } return true }