define a resource class for every entity that needs to be controlled on the game map
This commit is contained in:
18
entities/resource.py
Normal file
18
entities/resource.py
Normal file
@@ -0,0 +1,18 @@
|
||||
class BrSimResource():
|
||||
|
||||
def __init__(self):
|
||||
self.coord_x= 0
|
||||
self.coord_y= 0
|
||||
|
||||
def is_player(self):
|
||||
return False
|
||||
|
||||
def is_item(self):
|
||||
return False
|
||||
|
||||
def get_coordinates(self):
|
||||
return self.coord_x, self.coord_y
|
||||
|
||||
def set_coordinates(self, x, y):
|
||||
self.coord_x= x
|
||||
self.coord_y= y
|
||||
Reference in New Issue
Block a user