Create attractive VASL scenarios, with loads of useful information embedded to assist with game play. https://vasl-templates.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
vasl-templates/vassal-shim/src/vassal_shim/lfa/CustomLabelEvent.java

31 lines
787 B

package vassal_shim.lfa ;
import org.w3c.dom.Document ;
import org.w3c.dom.Element ;
// --------------------------------------------------------------------
public class CustomLabelEvent implements Event
{
String customLabel ;
public CustomLabelEvent( String customLabel )
{
// initialize the CustomLabelEvent
this.customLabel = customLabel ;
}
public Element makeXmlElement( Document doc )
{
// create an XML element for the CustomLabelEvent
Element elem = doc.createElement( "customLabelEvent" ) ;
elem.setTextContent( customLabel ) ;
return elem ;
}
public String toString()
{
// return the CustomLabelEvent as a string
return "<CustomLabelEvent:" + customLabel + ">" ;
}
}