-
Notifications
You must be signed in to change notification settings - Fork 0
/
bubble.py
29 lines (26 loc) · 1004 Bytes
/
bubble.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
import pos
class Bubble():
def __init__(self, id):
self.coordinate = pos.Coordinate(-1, -1)
self.id = id
self.action = None
self.label_mode_1 = None
self.label_mode_2 = None
self.label_mode_3 = None
self.mode = -1
self.alive = False
def __str__(self):
return "Bubble[id: " + str(self.id) + ", cor: " + str(self.coordinate) + ", alive: " + str(self.alive) + "]"
def setupBubble(self, mode):
self.alive = True
self.mode = mode
if self.id == 1:
self.label_mode_1 = "characters/green_bubble_1.png"
self.label_mode_2 = "characters/green_bubble_2.png"
self.label_mode_3 = "characters/benzo_left_inside.png"
else:
self.label_mode_1 = "characters/blue_bubble_1.png"
self.label_mode_2 = "characters/blue_bubble_2.png"
self.label_mode_3 = "characters/benzo_left_inside.png"
def isAlive(self):
return self.alive