mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 12:12:36 -06:00
35 lines
759 B
Python
35 lines
759 B
Python
|
from DNAUtil import *
|
||
|
|
||
|
class DNABattleCell:
|
||
|
COMPONENT_CODE = 21
|
||
|
|
||
|
def __init__(self, width, height, pos):
|
||
|
self.width = width
|
||
|
self.height = height
|
||
|
self.pos = pos
|
||
|
|
||
|
def setWidth(self, width):
|
||
|
self.width = width
|
||
|
|
||
|
def getWidth(self):
|
||
|
return self.width
|
||
|
|
||
|
def setHeight(self, height):
|
||
|
self.height = height
|
||
|
|
||
|
def getHeight(self):
|
||
|
return self.height
|
||
|
|
||
|
def setPos(self, pos):
|
||
|
self.pos = pos
|
||
|
|
||
|
def getPos(self):
|
||
|
return self.pos
|
||
|
|
||
|
def setWidthHeight(self, width, height):
|
||
|
self.width = width
|
||
|
self.height = height
|
||
|
|
||
|
def __str__(self):
|
||
|
return 'DNABattleCell width: ' + str(self.width) + ' height: ' + str(self.height) + ' pos: ' + str(self.pos)
|