Hi, Brent

Thanks for your reply.

>>1. How can I have a piece change owners? In Shogi, when a piece is
>>captured it joins the forces of the person that did the capturing.
> 
> That depends on how you have implemented 'owning' a piece.
> If you have used the 'Restrict Access' trait to limit access
> to a particular side, you can't change the 'ownership'. Usually,
> you would just do this by having a Layer trait with two levels
> showing the different colors/symbols/etc. and have a command that
> changes between the two.

That's a bummer. I have the 'Restricted Access' method currently in
place because each piece has a promoted state as well as it's starting
state, and I've used the layer trait to define that. Maybe I'll have
to redefine things and give the pieces 4 layers each
(side1.startingstate, side1.promotedstate, side2.startingstate, &
side2.promotedstate if I'm understanding you correctly) and get rid of
the 'Restrict Access' trait. Is there a way then to do this with
layers and still be able to prevent side2 from moving side1's pieces
while the piece has side1's layers active?

Thanks for the 'retire' and save while observer tip. :)

C ya,

TKR101010 

Reply via email to