2022-05-19 17:09:46 -04:00
|
|
|
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
|
2022-05-25 16:45:23 -04:00
|
|
|
resourceObject
|
|
|
|
emptyObject
|
2022-05-19 17:09:46 -04:00
|
|
|
)
|