>*********** REPLY SEPARATOR ***********
>
>On 8/01/2007 at 2:32 AM Phoenix wrote:
>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. 

I would usually approach this by using two separate layers. The 'Base' level 
might just be a colored background, one for each side.

The top level uses transparent images to just overlay the two different 
(unpromoted, promoted) piece images of the top. 

You will find that much easier to control - Once command toggles between sides, 
another command to toggle promotion status.


>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?

When you play in real life, what stops side2 from moving side1's pieces? Why 
not use the same method in VASSAL? While physical violence can't be 
implemented, verbal abuse in the chat window usually does the job :)

Cheers,
Brent.


>Thanks for the 'retire' and save while observer tip. :)
>
>C ya,
>
>TKR101010 
>
>
>
____________________________________________________________
Brent Easton                       
Analyst/Programmer                               
University of Western Sydney                                   
Email: [EMAIL PROTECTED]

Reply via email to