23 lines
475 B
Python
23 lines
475 B
Python
class Tile:
|
|
def __init__(self):
|
|
self.position = None
|
|
self.image = None
|
|
self.parent = None
|
|
|
|
def getSprite(self):
|
|
return self.image
|
|
|
|
def setSprite(self, sprite):
|
|
self.image = sprite
|
|
|
|
def getPosition(self):
|
|
return self.position
|
|
|
|
def setPosition(self, position):
|
|
self.position = position
|
|
|
|
def getParent(self):
|
|
return self.parent
|
|
|
|
def setParent(self, parent):
|
|
self.parent = parent |