|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.xml.tbs.Tbs
public class Tbs
This class represents an implementation of the XmlToMDB interface that converts a XML tbs node to its binary form to the given OutputSource.
Field Summary | |
---|---|
static java.util.Stack<java.util.List<XmlParser.Node>> |
macroActions
Available node for action of macro. |
static java.util.Map<java.lang.String,XmlParser.Node> |
referencedAbilities
Available ability references of this TBS |
static java.util.Map<java.lang.String,java.util.List<XmlParser.Node>> |
referencedActions
Available actions references of this TBS |
static java.util.Map<java.lang.String,XmlParser.Node> |
referencedAttachments
Available attachments references of this TBS. |
static java.util.Set<java.lang.String> |
referencedNonMacroActions
Available actions references of this TBS do not accepting macro |
static java.util.Set<java.lang.String> |
referencedNonMacroAttachments
Available attachments references of this TBS do not accepting macro |
static java.util.Map<java.lang.String,XmlParser.Node> |
referencedTest
Available test references of this TBS |
static boolean |
resolveReferences
Are the references must be resolved. |
Constructor Summary | |
---|---|
Tbs()
|
Method Summary | |
---|---|
int |
buildMdb(XmlParser.Node node,
java.io.OutputStream out)
Converts the given tbs XML node to its binary form writing in the given OutputStream. |
static void |
buildMdbPhaseType(XmlParser.Node node,
java.io.OutputStream out)
Structure of stream : Data[size] phase name + '\0' [...] |
static void |
buildMdbTooltipFilter(XmlParser.Node node,
java.io.OutputStream out)
Structure of stream : Data[size] display powerANDtoughness yes=1,no=0 [1] display states yes=1,no=0 [1] display types yes=1,no=0 [1] display colors yes=1,no=0 [1] display properties yes=1,no=0 [1] display damage yes=1,no=0 [1] filter [...] |
static java.util.List<XmlParser.Node> |
peekMacroAction()
Return the last given action to a macro. |
static void |
popMacroAction()
Remove the last given action to a macro. |
static void |
pushMacroAction(java.util.List<XmlParser.Node> node)
Push an action (accepting null ) for macro. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.Map<java.lang.String,XmlParser.Node> referencedAbilities
public static java.util.Map<java.lang.String,XmlParser.Node> referencedTest
public static java.util.Map<java.lang.String,java.util.List<XmlParser.Node>> referencedActions
public static java.util.Set<java.lang.String> referencedNonMacroActions
public static java.util.Set<java.lang.String> referencedNonMacroAttachments
public static java.util.Map<java.lang.String,XmlParser.Node> referencedAttachments
public static java.util.Stack<java.util.List<XmlParser.Node>> macroActions
public static boolean resolveReferences
Constructor Detail |
---|
public Tbs()
Method Detail |
---|
public final int buildMdb(XmlParser.Node node, java.io.OutputStream out) throws java.io.IOException
buildMdb
in interface XmlToMDB
node
- the XML card structureout
- outputstream where the card structure will be saved
java.io.IOException
- error during the writting.IdTokens.PLAYER_REGISTER_SIZE
,
PhaseType
,
SystemAbility
,
StatePicture
,
MdbLoader.loadMDB(String, int)
public static final void buildMdbPhaseType(XmlParser.Node node, java.io.OutputStream out) throws java.io.IOException
node
- the XML phase type structureout
- outputstream where the card structure will be saved
java.io.IOException
- error during thePhaseType
public static final void buildMdbTooltipFilter(XmlParser.Node node, java.io.OutputStream out) throws java.io.IOException
node
- the XML structureout
- outputstream where the card structure will be saved
java.io.IOException
- error during the writing.public static void pushMacroAction(java.util.List<XmlParser.Node> node)
null
) for macro.
node
- the node to give to the next macro.public static java.util.List<XmlParser.Node> peekMacroAction()
public static void popMacroAction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |