[cells-devel] initial stab at using Cells

Jack Unrue jdunrue at gmail.com
Mon Apr 10 03:32:21 UTC 2006


On 4/9/06, Ken Tilton <kentilton at gmail.com> wrote:
>
> it is pretty clear to me as an old Cells hand. I am toast right now, but
> I'll send some comments tomorrow. One Q: where does game-shape-data get
> called, in some imperative logic responding to events,  that detects that a
> shape has been placed?

In tiles-panel.lisp, look for gfw:event-mouse-up. Basically if the location
of the mouse up occurs within the same tile shape as the mouse down that
started the selection, then the list of points comprising that shape become
the input data that tickles the game model. The internal representation
of the board gets modified accordingly (the selected shape is removed
and points are awarded), then the scoreboard and tile panels are told
to redraw themselves via observers on the score and tiles slots.

Thanks for taking a look.

--
Jack Unrue



More information about the cells-devel mailing list