|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.expression.Expression net.sf.magicproject.expression.IntValue
public class IntValue
Field Summary | |
---|---|
int |
value
The integer value of this expression |
Constructor Summary | |
---|---|
IntValue(java.io.InputStream inputFile)
Creates a new instance of IntValue Structure of InputStream : Data[size] int 16 value [2] |
|
IntValue(int value)
Creates a new instance of IntValue with a specified value. |
Method Summary | |
---|---|
int |
getPreemptionValue(Ability ability,
Targetable tested,
ContextEventListener context)
Returns the integer value of this expression exactly as it will be when the ability will be executed. |
int |
getValue(Ability ability,
Targetable tested,
ContextEventListener context)
Returns the integer value of this expression |
boolean |
isConstant()
Is this expression is a constant. |
java.lang.String |
toString()
|
Methods inherited from class net.sf.magicproject.expression.Expression |
---|
canBePreempted, extractTriggeredEvents, getConstraintExpression, getObject, getObjectClass |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int value
Constructor Detail |
---|
public IntValue(java.io.InputStream inputFile) throws java.io.IOException
inputFile
- file containing this action
java.io.IOException
- if error occurred during the reading process from the specified
input streampublic IntValue(int value)
value
- integer value of this expressionMethod Detail |
---|
public int getPreemptionValue(Ability ability, Targetable tested, ContextEventListener context)
Expression
getPreemptionValue
in class Expression
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.tested
- the tested cardcontext
- is the context attached to this test.
public int getValue(Ability ability, Targetable tested, ContextEventListener context)
Expression
getValue
in class Expression
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.tested
- the tested cardcontext
- is the context attached to this test.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isConstant()
Expression
isConstant
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |