forked from alexraevn/acadaemia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooddrinkojects.py
50 lines (39 loc) · 1.52 KB
/
fooddrinkojects.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from objects import gameObject
class FoodDrink(gameObject):
def __init__(self, **kwargs):
super(FoodDrink, self).__init__(**kwargs)
self.effect = {}
class apple(FoodDrink):
def __init__(self, effect, weight, value):
super(apple, self).__init__(weight = weight, value = value)
self.effect = effect
class banana(FoodDrink):
def __init__(self, effect, weight, value):
super(banana, self).__init__(weight = weight, value = value)
self.effect = effect
def store(self):
pass
class chocolate(FoodDrink):
def __init__(self, effect, weight, value):
super(chocolate, self).__init__(weight = weight, value = value)
self.effect = effect
class beer(FoodDrink):
def __init__(self, effect, weight, value):
super(beer, self).__init__(weight = weight, value = value)
self.effect = effect
class water(FoodDrink):
def __init__(self, effect, weight, value):
super(water, self).__init__(weight = weight, value = value)
self.effect = effect
class sandwich(FoodDrink):
def __init__(self, effect, weight, value):
super(sandwich, self).__init__(weight = weight, value = value)
self.effect = effect
class pasta(FoodDrink):
def __init__(self, effect, weight, value):
super(pasta, self).__init__(weight = weight, value = value)
self.effect = effect
class eggs(FoodDrink):
def __init__(self, effect, weight, value):
super(eggs, self).__init__(weight = weight, value = value)
self.effect = effect