Poodletooth-iLand/toontown/dna/DNABattleCell.py
2015-03-03 17:10:12 -05:00

34 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)