Ejemplo n.º 1
0
    def __init__(self, owner, time=5.0, frequency=0.25):
        """
        Creates the effect that will last for the given time, and blink at the given frequency.
        
        @type  owner:        L{Actor<Actor.Actor>}
        @param owner:        Who this State belongs to.
        
        @type  time:         C{float}
        @param time:         How many seconds the effect should last.
        
        @type  frequency:    C{float}
        @param frequency:    Length in seconds of a single on and off cycle. 
        """
        State.__init__(self, owner, "blink")
        self._expireTime = time
        self._halfFrequency = frequency / 2.0

        self._timeLeft = self._expireTime
        self._timeLeftVisible = self._halfFrequency
Ejemplo n.º 2
0
 def __init__(self, owner):
     State.__init__(self, owner, Constants.StateConstants.IDLE_NAME)
Ejemplo n.º 3
0
    def __init__(self, owner):
        State.__init__(self, owner, "lose")

        self._isOnGround = False
        self._wasInAir = False
Ejemplo n.º 4
0
    def __init__(self, owner):
        State.__init__(self, owner, "dead")

        self._respawnCountDown = 0.0
Ejemplo n.º 5
0
    def __init__(self, owner):
        State.__init__(self, owner, "win")
        self._winTimer = 0.0

        self._isOnGround = False
        self._wasInAir = False
Ejemplo n.º 6
0
    def __init__(self, owner):
        State.__init__(self, owner, Constants.StateConstants.THROW_NAME)

        self._activateFrame = 1
        self._deactivateFrame = 3
Ejemplo n.º 7
0
 def __init__(self, owner):
     State.__init__(self, owner, "thrown")
Ejemplo n.º 8
0
 def __init__(self, owner):
     State.__init__(self, owner, 'TargetState')
Ejemplo n.º 9
0
 def __init__(self, owner):
     State.__init__(self, owner, 'land')
Ejemplo n.º 10
0
 def __init__(self, owner):
     State.__init__(self, owner, 'fall')
Ejemplo n.º 11
0
 def __init__(self, owner):
     State.__init__(self, owner, 'idle')
Ejemplo n.º 12
0
 def __init__(self, owner):
     State.__init__(self, owner, 'StaticState')