forked from Cryz/battle_royale_sim
define a resource class for every entity that needs to be controlled on the game map
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import random as _random
|
||||
from entities import resource as _resource
|
||||
|
||||
class BrSimItem():
|
||||
|
||||
def __init__(self):
|
||||
self.coord_x= 0
|
||||
self.coord_y= 0
|
||||
class BrSimItem(_resource.BrSimResource):
|
||||
|
||||
def is_item(self):
|
||||
return True
|
||||
|
||||
def get_name(self):
|
||||
return self.name
|
||||
@@ -20,10 +20,3 @@ class BrSimItem():
|
||||
|
||||
def is_cure(self):
|
||||
return False
|
||||
|
||||
def get_item_coordinates(self):
|
||||
return self.coord_x, self.coord_y
|
||||
|
||||
def set_item_coordinates(self, x, y):
|
||||
self.coord_x= x
|
||||
self.coord_y= y
|
||||
|
||||
Reference in New Issue
Block a user