def __init__ (self, start_dir, sqlitefile): if 0 and os.path.exists (sqlitefile): raise AlreadyExistsError, '\nERROR: sqlite_file already exists at {}\n'.format(sqlitefile) Walker.__init__(self, start_dir) self.db_table = CommsDBTable(sqlitefile)
def __init__(self, objectLogicPath, object): Live.__init__(self,objectLogicPath, object) Walker.__init__(self, objectLogicPath, object) logicFileName = object.GetLogicFileName() configFile=ini.IniFile(objectLogicPath) configFile.ReadString("npc", "group") self.SetHealth(configFile.ReadInt("npc", "health")) self._clock = sf.Clock() self._alarm = False
def __init__(self): events.AddListener(self) Walker.__init__(self) self.health = 10 self.energy = 1 self.xMax = 4 self.xMin = -4 self.yMax = 2 self.yMin = -2 self.state = State.fastWalking self.knownAvatars = [] self.xFightingReach = 10 self.yFightingReach = 4 self.attack = attacks.Hug() self.stunCounter = 0
def __init__(self): events.AddListener(self) Walker.__init__(self) self.health = 10 self.energy = 1 self.xMax = 4 self.xMin = -4 self.yMax = 2 self.yMin = -2 self.state = State.fastWalking self.knownAvatars = [] self.xFightingReach = 10 self.yFightingReach = 4 self.attack = attacks.Hug() self.stunCounter = 0
def __init__(self): Walker.__init__(self) events.AddListener(self) self.health = 3 self.state = State.normal self.upPressed = False self.rightPressed = False self.downPressed = False self.leftPressed = False self.xFriction = 1 self.yFriction = 2 self.xAccel = 1 self.yAccel = 1 self.xMax = 6 self.xMin = -6 self.yMax = 2 self.yMin = -2 self.stunCounter = 0 self.yoyo = LogicalYoyo() self.attacks = attacks.makeYoyoAttacks(self.yoyo) self.strings = [] self.selectedAttack = None