def getId(self): self.validify() return library.unitGetId(self.ptr)
def __init__(self, ptr): from BaseAI import BaseAI self.ptr = ptr self.iteration = BaseAI.iteration self.id = library.unitGetId(ptr)