|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.action.ActionFactory
public final class ActionFactory
Method Summary | |
---|---|
static Test |
getConstraints(MAction[] cost,
Test constraintTest)
Return the constraints to make usable the specified actions list. |
static void |
init(java.io.InputStream inputFile)
Initialize pictures and constraints associted to actions. |
static MAction |
readAction(java.io.InputStream inputFile,
Modifier modifier)
Read and return the next action from specified inputFile |
static MAction[] |
readActionList(java.io.InputStream inputFile,
Modifier modifier)
Read a list a actions from the given input stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void init(java.io.InputStream inputFile) throws java.io.IOException
inputFile
- file containing this action
java.io.IOException
- If some other I/O error occurspublic static MAction[] readActionList(java.io.InputStream inputFile, Modifier modifier) throws java.io.IOException
inputFile
- the stream used to create list of actions.modifier
- the optional modifier containing the action list.
java.io.IOException
- If some other I/O error occurspublic static Test getConstraints(MAction[] cost, Test constraintTest)
cost
- is the actions listconstraintTest
- is the existing constrains
public static MAction readAction(java.io.InputStream inputFile, Modifier modifier) throws java.io.IOException
inputFile
- the input stream where action will be read.modifier
- the modifier that would be used with actions that need it. Can be
null.
java.io.IOException
- If some other I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |