26 lines
845 B
Python
26 lines
845 B
Python
class Field:
|
|
def __init__(self, fieldType, plantType, isWet, wetTime, isFertilized, fertilizedTime):
|
|
self.fieldType = fieldType # good/bad
|
|
self.plantType = plantType # wheat/carrot/cabbage
|
|
self.isWet = isWet # yes/no
|
|
self.wetTime = wetTime # number
|
|
self.isFertilized = isFertilized # yes/no
|
|
self.fertilizedTime = fertilizedTime # number
|
|
|
|
|
|
class Plant:
|
|
def __init__(self, plantType, growthState):
|
|
self.plantType = plantType # wheat/carrot/cabbage
|
|
self.growthState = growthState # growing/grown
|
|
|
|
|
|
class Fertilizer:
|
|
def __init__(self, fertilizerType):
|
|
self.fertilizerType = fertilizerType # wheat/carrot/cabbage
|
|
|
|
|
|
class Player:
|
|
x = 0
|
|
y = 0
|
|
rotation = 0
|