Game design question...

sig siguctua at gmail.com
Mon May 7 07:52:39 UTC 2007


On 07/05/07, Blake <blake at kingdomrpg.com> wrote:
> On Sun, 06 May 2007 23:41:46 -0700, sig <siguctua at gmail.com> wrote:
>
> > i'd rather use blocks for this matter. like:
> >
> > aGame do: myBlock withParams: { commandText. player }
>
> Where do you get "myBlock" from, starting from the UI (which initiates the
> action)?
>
from any point you like to. I don't know how exactly your verification
looks like, i given this short code just to show, that you can encode
your action in a block(s) instead of cloning numerous subclasses of
CommandObject for each action type you may need.



More information about the Squeak-dev mailing list