Prześlij pliki do 'src'
classes added; pictures of bee and grass tiles
This commit is contained in:
parent
a3826aa471
commit
477d5b0ead
19
src/Bee.py
Normal file
19
src/Bee.py
Normal file
@ -0,0 +1,19 @@
|
||||
import Flower
|
||||
class Bee:
|
||||
# typeOfBee = None
|
||||
# genotype = None
|
||||
# favFloweColor = None
|
||||
# biome = None
|
||||
# product = None
|
||||
|
||||
def __init__(self, typeOfBee, genotype, biome, product, favFlowerColor = Flower.Flower.color):
|
||||
self.typeOfBee = typeOfBee
|
||||
self.genotype = genotype
|
||||
self.favFlowerColor = favFlowerColor
|
||||
self.biome = biome
|
||||
self.product = product
|
||||
self.amountOfPollinatedFlowers = 0
|
||||
|
||||
# def PollinateFlower(self):
|
||||
# self.amountOfPollinatedFlowers = self.amountOfPollinatedFlowers + 1
|
||||
# print("pollinated")
|
14
src/Beehive.py
Normal file
14
src/Beehive.py
Normal file
@ -0,0 +1,14 @@
|
||||
import Frames
|
||||
import Bee
|
||||
|
||||
class Beehive:
|
||||
bees = []
|
||||
coordinate = None
|
||||
frames = [] #Frames
|
||||
outputSlots = None #?
|
||||
|
||||
def __init__(self, bees, coordinate, frames, outputSlots):
|
||||
self.bees = bees
|
||||
self.coordinate = coordinate
|
||||
self.frames = frames
|
||||
self.outputSlots = outputSlots
|
15
src/Flower.py
Normal file
15
src/Flower.py
Normal file
@ -0,0 +1,15 @@
|
||||
import random
|
||||
|
||||
class PossibleFlower:
|
||||
color = ['red', 'blue', 'yellow', 'white', 'pink']
|
||||
name = ['tulip', 'sunflower', 'rose', 'dandelion', 'daisy']
|
||||
|
||||
class Flower:
|
||||
color = None
|
||||
name = None
|
||||
coordinates = []
|
||||
|
||||
def __init__(self, coordinates, color = PossibleFlower.color[random.randint(0, 4)], name = PossibleFlower.name[random.randint(0, 4)]):
|
||||
self.color = color
|
||||
self.name = name
|
||||
self.coordinates = coordinates
|
7
src/Frames.py
Normal file
7
src/Frames.py
Normal file
@ -0,0 +1,7 @@
|
||||
class Frames:
|
||||
# name = None
|
||||
# productivity = None
|
||||
|
||||
def __init__(self, name, productivity):
|
||||
self.name = name
|
||||
self.productivity = productivity
|
BIN
src/bee.png
Normal file
BIN
src/bee.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 531 KiB |
Loading…
Reference in New Issue
Block a user