|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.clickable.ability.AbilityFactory
public final class AbilityFactory
Method Summary | |
---|---|
static void |
init(java.io.InputStream dbStream)
Read available action constraints and abilities references. |
static Ability |
readAbility(java.io.InputStream inputFile,
MCard card)
Read and return the next ability from specified inputFile Structure of InputStream : Data[size] ability type [1] name name [String] ability tags [1] event [Event] cost [Action[]] effect [Action[]] |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Ability readAbility(java.io.InputStream inputFile, MCard card) throws java.io.IOException
inputFile
- the input stream where ability will be readcard
- the card owning the returned action
java.io.IOException
- during the stream readpublic static void init(java.io.InputStream dbStream) throws java.io.IOException
dbStream
- the stream header.
java.io.IOException
- during the stream read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |