net.sf.magicproject.clickable.ability
Class AbilityFactory

java.lang.Object
  extended by net.sf.magicproject.clickable.ability.AbilityFactory

public final class AbilityFactory
extends java.lang.Object

Since:
0.85
Author:
Fabrice Daugan

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

readAbility

public static Ability readAbility(java.io.InputStream inputFile,
                                  MCard card)
                           throws java.io.IOException
Read and return the next ability from specified inputFile

Parameters:
inputFile - the input stream where ability will be read
card - the card owning the returned action
Returns:
the next action read into of specified inputFile
Throws:
java.io.IOException - during the stream read

init

public static void init(java.io.InputStream dbStream)
                 throws java.io.IOException
Read available action constraints and abilities references.

Parameters:
dbStream - the stream header.
Throws:
java.io.IOException - during the stream read


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