net.sf.magicproject.xml.action
Class Paymana

java.lang.Object
  extended by net.sf.magicproject.xml.action.Paymana
All Implemented Interfaces:
XmlToMDB

public class Paymana
extends java.lang.Object
implements XmlToMDB

Since:
0.82
Author:
Fabrice Daugan

Constructor Summary
Paymana()
           
 
Method Summary
 int buildMdb(XmlParser.Node node, java.io.OutputStream out)
           Structure of stream : Data[size] idAction [1] the player paying this mana [TestOn] idNumber COLORLESS or IdTokens#REGISTERS[2] idNumber BLACK [2] idNumber BLUE [2] idNumber GREEN [2] idNumber RED [2] idNumber WHITE [2] colors of X = 2^ID__Color1+2^ID__Color2...[2]
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Paymana

public Paymana()
Method Detail

buildMdb

public final int buildMdb(XmlParser.Node node,
                          java.io.OutputStream out)
                   throws java.io.IOException

Specified by:
buildMdb in interface XmlToMDB
Parameters:
node - the XML action structure
out - outputstream where the card structure will be saved.
Returns:
the amount of written action in the output.
Throws:
java.io.IOException


Copyright © 2003-2007 Magic-Project. All Rights Reserved.