|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.stack.AdditionalCost
public class AdditionalCost
An additional cost definition : constraint and added actions.
Field Summary | |
---|---|
Test |
constraint
The constraint to apply this additional cost |
MAction[] |
cost
The additional cost |
Constructor Summary | |
---|---|
AdditionalCost(java.io.InputStream inputFile)
Creates a new instance of this class |
Method Summary | |
---|---|
java.lang.String |
toHtmlString(Ability ability,
ContextEventListener context)
Return the HTML code representing this additionnal cost. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Test constraint
public final MAction[] cost
Constructor Detail |
---|
public AdditionalCost(java.io.InputStream inputFile) throws java.io.IOException
inputFile
- is the file containing this definition.
java.io.IOException
- if error occurred during the reading process from the specified
input streamMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toHtmlString(Ability ability, ContextEventListener context)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.context
- the context needed by event activated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |