Home | Trees | Index | Help |
---|
|
object
--+ |Task
--+ | Wander
Walk around in a random way. An area can be optionally specified, in which case the walker will only try to walk to points that are inside that area (although its path when walking to such points might take it outside the area).
This task will not return until it times out.Method Summary | |
---|---|
__init__(self,
agent,
rect,
timeout)
| |
Attempt to accomplish this task, by examining and/or modifying the level; and should return a TaskResult object, indicating
what action should be taken next. | |
recover(self,
entity,
failed_task,
remaining_tasks,
info)
| |
Inherited from Task | |
| |
This method is called when a script starts using this task. | |
Attempt to accomplish this task, given that an interrupt condition occured. | |
Register this task class as a task that can be used in the task list of a script. (Class method) | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Instance Variable Summary | |
---|---|
Inherited from Task | |
NoneType |
fail_task : A variable used to hold the task that should be notified if this task
fails. |
NoneType |
next_task : A variable used to hold the task that should be performed after this
task. |
NoneType |
timeout : If set to a value other than None , then this task will
automatically fail if it has not finished before this amount of time (in
msec) has elapsed. |
Class Variable Summary | |
---|---|
list |
defaults = [None, None, None]
|
NoneType |
signature : The type signature of this task. |
Inherited from Task | |
tuple |
interrupts = ()
|
NoneType |
require = None |
dict |
task_classes = {'WaitForAvatar': <class 'pajammin.ai.scr...
|
Instance Method Details |
---|
__init__(self,
agent,
rect=None,
timeout=None)
|
act(self, level)Attempt to accomplish this task, by examining and/or modifying the
level; and should return a act() is called, it should only do a very
small amount of work -- this will ensure that the game runs more
smoothly.
|
recover(self, entity, failed_task, remaining_tasks, info)
|
Class Variable Details |
---|
defaults
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Sep 22 22:52:43 2005 | http://epydoc.sf.net |