Thinking about this more, it may be that 2 different named traits will not act to overide another like the 2 marker example, so just in case, an alternative
Current behavior is a basic piece w/ nothing on it (no traits) is going to default to stack on a layer it is assigned to by designer (or top most layer “null”? if none defined by GPL)
A basic piece with a DNS trait is being told it is in a forced condition to ignore default stacking regardless of layer it belongs to but will obey its layer position still in the case of multiple layers (at least it should)
DNS provides added functionality of piece manipulation - selection and mobility criteria
So if creating an opposite trait “Does Stack” to DNS in order for stacked pieces to have the same extended functionality available in DNS is not the best thing to do, or seems unintuitive to add based on current behavior, maybe it would make more sense to move the extended functionality out of DNS instead to its own trait “Piece manipulation”. DNS becomes a true override condition of normal stacking behavior only - thats all it does, default stacking is left alone and now any piece regardless of stacking can also have mobility and selection criteria added to them through the Piece manipulation trait instead
From: Timothy Mccarron timothy.mccarron@sbcglobal.net
To: VASSAL Engine Forums Mailing List messages@forums.vassalengine.org
Sent: Friday, May 8, 2009 8:36:26 AM
Subject: Re: [Developers]Re: NON_MOVABLE
thats easy,
if it has neither it will behave normally and stack without any of the other conditions that we could apply available with the DNS (or new DS) trait
if it has both, the piece will only obey the last of either trait in the stack - this is similar to what happens if you have 2 marker traits with the same property name but different property values
From: Joel Uckelman uckelman@nomic.net
To: VASSAL Engine Forums Mailing List messages@forums.vassalengine.org
Sent: Friday, May 8, 2009 8:23:09 AM
Subject: Re: [Developers]Re: NON_MOVABLE
Thus spake Timothy Mccarron:
So I should expect a piece without either trait neither to stack nor not
to stack? What if it has both, will it stack and not stack at the same
time? That’s intriguing.
–
J.
Messages mailing list
Messages@forums.vassalengine.org (Messages@forums.vassalengine.org)
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)