Package pajammin :: Package ai :: Package script :: Module walker :: Class TargetWillBeInMeleeRange
[show private | hide private]
[frames | no frames]

Type TargetWillBeInMeleeRange

object --+    
         |    
 Condition --+
             |
            TargetWillBeInMeleeRange


True if the target will be in range of the agent's given melee attack when the given melee attack actually fires, if the attack is initiated right now (given the target's current velocity). Currently assumes that the agent's velocity is zero.
Method Summary
  __init__(self, agent, target, attack_type)
  check(self, level)
Return true or false! This should be pretty fast, since it will be checked on *every* frame!
    Inherited from Condition
  __repr__(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Method Details

__init__(self, agent, target, attack_type)
(Constructor)

Overrides:
__builtin__.object.__init__

check(self, level)

Return true or false! This should be pretty fast, since it will be checked on *every* frame!
Overrides:
pajammin.ai.script.script.Condition.check (inherited documentation)