Package pyrobot :: Package general :: Module boids :: Class Board
[frames | no frames]

Class Board


Method Summary
  __init__(self, width, height, title)
A board for boids to explore...
  addBoid(self, boid)
  adjustDirections(self, weights)
  angleTo(self, b1, b2)
  avoid(self, num, radius)
  center(self, num, radius)
  close(self)
close the window...
  copy(self, num, radius)
  dist(self, x1, y1, x2, y2)
  draw(self)
Initialize the board.
  drawBoid(self, boid)
  move(self)
Make the boids move...
  view(self, num, radius)

Method Details

__init__(self, width, height, title='Boids')
(Constructor)

A board for boids to explore

close(self)

close the window

draw(self)

Initialize the board. You must do this if you ever want to see the path

move(self)

Make the boids move

Generated by Epydoc 2.1 on Mon Jul 25 01:39:28 2005 http://epydoc.sf.net