coordinate to include celestial type (planet, moon, debris)
@@ -7,6 +7,7 @@ type Coordinate struct {
Galaxy int
System int
Position int
+ Type DestinationType
}
func (c Coordinate) String() string {
@@ -17,5 +18,6 @@ func (c Coordinate) String() string {
func (c Coordinate) Equal(v Coordinate) bool {
return c.Galaxy == v.Galaxy &&
c.System == v.System &&
- c.Position == v.Position
+ c.Position == v.Position &&
+ c.Type == v.Type
}
