Poodletooth-iLand/toontown/dna/DNABattleCell.py

35 lines
759 B
Python
Raw Normal View History

2015-03-03 16:10:12 -06:00
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)