Package pajammin :: Package ai :: Module pathplanner :: Class JumpPathLink
[show private | hide private]
[frames | no frames]

Class JumpPathLink

PathLink --+
           |
          JumpPathLink


A link in the path planning graph for walkers, specifying that a walker can get from one surface to another by jumping to it.
Method Summary
  __init__(self, source, target, x, destx, walk_dir, walk_speed, jump_speed)
  __repr__(self)

Instance Variable Summary
  destx: The x position where the walker will land on the target surface.
  jump_speed: The initial y speed with which the walker should jump upwards.
  source: The WalkPathNode for the surface that the walker can jump from.
  target: The WalkPathNode for the surface that the walker can jump to.
  walk_dir: The direction that the walker should be walking in when it jumps.
  walk_speed: The speed with which the walker should be walking when it jumps.
  x: The x coordinate of the location along the source surface that the walker will need to jump from.

Method Details

__init__(self, source, target, x, destx, walk_dir, walk_speed, jump_speed)
(Constructor)

Overrides:
pajammin.ai.pathplanner.PathLink.__init__

__repr__(self)
(Representation operator)


Instance Variable Details

destx

The x position where the walker will land on the target surface.

jump_speed

The initial y speed with which the walker should jump upwards.

source

The WalkPathNode for the surface that the walker can jump from.

target

The WalkPathNode for the surface that the walker can jump to.

walk_dir

The direction that the walker should be walking in when it jumps.

walk_speed

The speed with which the walker should be walking when it jumps.

x

The x coordinate of the location along the source surface that the walker will need to jump from. In particular, the side of the walker's body closest to the destination surface should be at this x position.