Create account / Log in

Multiple pieces made from same prototype with dynamic proper

Topics related to the main Vassal engine.

Moderators: Tim M, uckelman

Multiple pieces made from same prototype with dynamic proper

Postby zotz » May 24th, 2019, 9:07 pm

Let's say I have two pieces:

Piece1
Piece2

Let's say each piece includes a Game Piece Prototype definition:

PieceVariables

Let's say that the PieceVariables prototype contains two dynamic Properties:

AttackStrenght
DefendStrength

OK, if I change the AttackStrength of Piece1, does the AttackStrenght of Piece2 get changed as well?

Put another way, does each piece get its own copy of dynamic variables it incorporated from a prototype definition?

drew
zotz
 
Posts: 11
Joined: May 4th, 2019, 5:02 pm

Re: Multiple pieces made from same prototype with dynamic pr

Postby zotz » May 25th, 2019, 12:31 am

I may have the answer myself.

It looks like they are independent.

drew
zotz
 
Posts: 11
Joined: May 4th, 2019, 5:02 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests