def __init__(self, number, buildtype): 'buildtype is the name of the object we need number of' self._number = number name = Tiledict.get(buildtype).__name__ self._buildfilter = make_namedclass_filter(name) self.active = True
def __init__(self, ticks, Unit, pos=None): """ticks - number of ticks to wait before adding unit.""" self.Unit = Tiledict.get(Unit) self.pos = pos self.ticks = ticks self.active = True