Home | Trees | Index | Help |
---|
|
Method Summary | |
---|---|
__init__(self,
level)
| |
Try to find a path from here to there; and return a Task
object to walk there. | |
find_path_astar(self,
start,
end,
agent)
| |
find_path_greedy(self,
start,
end,
agent)
| |
link_dist(self,
link)
| |
link_ok(self,
link,
agent)
| |
links(self)
| |
node_dist(self,
node1,
node2)
| |
node_ok(self,
node,
agent)
| |
nodes(self)
| |
Called when a new body is added to the level. | |
Called when a body is moved (in the level editor only?) | |
Called when a body is removed from the level. | |
randomize_dist(self,
dist)
|
Instance Variable Summary | |
---|---|
int |
JUMP_UP_CLEARANCE : The extra clearance which a walker should have when jumping up onto a
surface, in pixels. |
int |
MAX_JUMP_HEIGHT : The maximum y distance between two surfaces for which the path planner
should consider adding a jump link. |
int |
OPTIMAL_FALL_XVEL : The preferred x velocity at which to fall from one link to another,
when a range of different velocities are possible. |
int |
WALK_CLEARANCE : The minimum amount of vertical clearance that a body should have to be
represented by a single node. |
Class Variable Summary | |
---|---|
int |
MIN_CLEARANCE = 20 |
bool |
RANDOMIZE_SEARCH = True
|
str |
SEARCH_ALGORITHM = 'astar'
|
int |
TILE_WIDTH = 20 |
int |
WINDOW = 40 |
Method Details |
---|
__init__(self,
level)
|
find_path(self, agent, endx, endy)Try to find a path from here to there; and return aTask object to walk there.
|
find_path_astar(self, start, end, agent) |
find_path_greedy(self, start, end, agent) |
link_dist(self, link) |
link_ok(self, link, agent) |
links(self) |
node_dist(self, node1, node2) |
node_ok(self, node, agent) |
nodes(self) |
notify_add_body(self, body)Called when a new body is added to the level. |
notify_move_body(self, body)Called when a body is moved (in the level editor only?) |
notify_remove_body(self, body)Called when a body is removed from the level. |
randomize_dist(self, dist) |
Instance Variable Details |
---|
JUMP_UP_CLEARANCEThe extra clearance which a walker should have when jumping up onto a surface, in pixels.
|
OPTIMAL_FALL_XVELThe preferred x velocity at which to fall from one link to another, when a range of different velocities are possible.
|
WALK_CLEARANCEThe minimum amount of vertical clearance that a body should have to be represented by a single node. If any solid objects are in the area above the body's surface and below this clearance, then the body's surface will be encoded as a series of nodes.
|
Class Variable Details |
---|
MIN_CLEARANCE
|
RANDOMIZE_SEARCH
|
SEARCH_ALGORITHM
|
TILE_WIDTH
|
WINDOW
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Sep 22 22:52:43 2005 | http://epydoc.sf.net |