-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathboss.py
40 lines (40 loc) · 1.16 KB
/
boss.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
from shoot import Shoot
class Boss:
__contadorTiros = 0
__tiros = []
def __init__(self, x = 0,y = 0, width=239,height=182,img = "",velocidade = 1, life = 1):
self.__x = x
self.__y = y
self.__width = width
self.__height = height
self.__img = img
self.__velocidade = velocidade
self.__life = life
def getImg(self):
return self.__img
def getX(self):
return self.__x
def getY(self):
return self.__y
def getWidth(self):
return self.__width
def getHeight(self):
return self.__height
def setX(self,x):
self.__x = x
def setVelocidade(self,velocidade):
self.__velocidade = velocidade
def getVelocidade(self):
return self.__velocidade
def getLife(self):
return self.__life
def setLife(self,life):
self.__life = life
def getContadorTiros(self):
return self.__contadorTiros
def setContadorTiros(self, tiros):
self.__contadorTiros = tiros
def getTiros(self):
return self.__tiros
def setTiros(self,tiros):
self.__tiros = tiros