1
0

define a resource class for every entity that needs to be controlled on the game map

This commit is contained in:
andrea
2025-08-01 22:05:03 +02:00
parent e0dc558c27
commit a5831085ba
4 changed files with 31 additions and 25 deletions

18
entities/resource.py Normal file
View 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