-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsuelo.py
More file actions
33 lines (26 loc) · 683 Bytes
/
suelo.py
File metadata and controls
33 lines (26 loc) · 683 Bytes
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
class suelo:
'''
The class represents the ground of the stage of the game
Attributes:
xpos - the position on the x axis
ypos - the position on the y axis
level - the plataform that its representing
Methods:
@property methods - give an attribute back
'''
__xpos = 0
__ypos = 0
__level = 0
def __init__(self,x,y, level):
self.__xpos = x
self.__ypos = y
self.__level = level
@property
def xpos(self):
return self.__xpos
@property
def ypos(self):
return self.__ypos
@property
def level(self):
return self.__level