spacetea/simulator/object.go
2022-05-25 16:45:23 -04:00

20 lines
315 B
Go

package simulator
//Object is anything that can be placed in a pod
type Object interface {
Type() ObjectType
Tick()
String() string
Describe() string
}
//ObjectType is what kind of game object it is
type ObjectType int
const (
producerObject ObjectType = iota
consumerObject
resourceObject
emptyObject
)