コード例 #1
0
    def canUse(self, caster, target, scObject):
        """
		virtual method.
		Can use
		@param caster: Entity with Ability
		@param receiver: Entity
		"""
        return ActiveAbility.canUse(self, caster, target, scObject)
コード例 #2
0
    def use(self, caster, scObject):
        """
		virtual method.
		Use abilities
		@param caster: Entity with Ability
		@param receiver: Entity
		"""
        return ActiveAbility.use(self, caster, scObject)
コード例 #3
0
 def __init__(self):
     ActiveAbility.__init__(self)
コード例 #4
0
    def onTimer(self, tid, userArg):
        """
		Ouroboros method.
		Engine callback timer trigger
		"""
        ActiveAbility.onTimerTick(self, tid, userArg, self)