Hi Brent,
I have Vassal up and running in eclipse .. stand alone. Hope RK adds me soon
I was asking about adding a property to slect via a global on PieceName.
Well Ive tested it and it works but you guys might know better.
Hi Brent,
I have Vassal up and running in eclipse .. stand alone. Hope RK adds me soon
I was asking about adding a property to filter via a global on PieceName.
Well I've tested it and it works but you guys might know better.
I added the following to public Command apply(Map m, PieceFilter filter :-
:-
I added the following to:-
public Command apply(Map m, PieceFilter filter
public static final String PIECE_NAME = "PieceName";
.
Then the bits below preceded by >
.
.
.
public Object getProperty(Object key) {
if (Properties.KEY_COMMANDS.equals(key)) {
return getKeyCommands();
}
> else if (PIECE_NAME.equals(key)) {
> return this.commonName;
> }
else if (LOCATION_NAME.equals(key)) {
return getMap() == null ? "" : getMap().locationName(getPosition());
I followed it through public Command apply(Map m, PieceFilter filter )
Jerry
-------Original Message-------
From: Brent Easton
Date: 11/23/05 23:22:09
To: [email protected]
Subject: Re: [vassalengine] Property names in globals
Jerry,
Generally, for the FormatedStringConfigurer's in the Map component etc., you
have only those variables available in the 'Insert' pull-down list.
The Property Filter in Global Key commands is handled differently and no,
you cannot use $xxx$ constructs to access any of the FormattedString
variables as these are interpreted within the FormattedString class.
I can see a case for adding some more properties to the BasicPiece class so
that they can be used in property filters:
PieceName: Current piece name
PlayerSide: Side name for the current player (not the owner of the piece).
Regards,
Brent.
*********** REPLY SEPARATOR ***********
On 23/11/2005 at 10:02 AM Jerry Martin wrote:
Brent,
Thanks I phrased my question wrong, I was aware of those, I had hoped
there would be one for the piecename, I am also unsure how to represent them
for the currently active piece can the $piecename$ as used for
reporting/messaging be used and if so what variables are avaialable, that
was the list I was after.
1. When a global is run can you use $xx$ within the matching criteria
Brent Easton <[EMAIL PROTECTED]> wrote:
The properties are detailed in the user manual and summarised in the FAQ
at http://wiki.vassalengine.org/doku
php?id=faq_modules#what_system_properties_are_returned_by_counters
Cheers,
Brent.
*********** REPLY SEPARATOR ***********
On 23/11/2005 at 1:31 AM Starman wrote:
In a global can you refer to a $piecename$=Test or will this just return
the piecename the Global is called from.
It would be great if there was a list of all the property/trait names that
can be uses and the $ variables and what they reference.
J
____________________________________________________________
Brent Easton
Analyst/Programmer
University of Western Sydney
Email: [EMAIL PROTECTED]
[Non-text portions of this message have been removed]
SPONSORED LINKS
Card games Game pieces Wargaming Game play Vassal
Personal use
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "vassalengine" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with
voicemail
[Non-text portions of this message have been removed]
SPONSORED LINKS Card games Game pieces Wargaming
Game play Vassal Personal use
YAHOO! GROUPS LINKS
Visit your group "vassalengine" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
____________________________________________________________
Brent Easton
Analyst/Programmer
University of Western Sydney
Email: [EMAIL PROTECTED]
[Non-text portions of this message have been removed]
YAHOO! GROUPS LINKS
Visit your group "vassalengine" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/IMSolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/vassalengine/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/