On Jan 13, 2004, at 3:44 PM, Gary Stainburn wrote:

Did that make any sense?

Yes. While driving home I think I've discovered my biggest conceptual block.
The idea of a Trainset class is as you know new. The idea was originally to
have all code relating to track in the Trainset::Track class.


What I've realised is that only the code relating to the insides of a single
block belongs in there (constructor, update etc) while use use of, or the
grouping of multiple blocks belongs in the container.


This way, linking blocks together etc. all happens within the container code.

I will still need to link blocks to each other directly, so that the effects
on one block will ripple down to it's neighbours, and link levers to signals
and points to change their states, but again this will happen within the
container class and should not be a problem.


One thing that both you and Rob will be happy with is that I will finally let
go of the $owner.

"You've taken your first steps into a larger world." ;)


I really hope we are helping you. I think your project, while quite grand, is interesting and want to see it come together for you. There have been some excellent ideas in this thread by many people. Assimilate them and take the next few steps. I expect good things. If you get stuck, you know where to find us... Good luck!

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to