Section 2

Path Calculation

We can now write the path calculation code for Grid.

Okay. Let's write code to activate the cells on the laser beam's path.

The #activateCellsInPath method depends on a method we haven't written yet: #activateCell for the LaserPathElement class. It's a very simple method.

Index Page Next Page

Copyright © 2007, 2008, 2009, 2010 Stephan B Wessels