|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.event.context.MContextMtargetable
net.sf.magicproject.event.context.MContextCardCardIntInt
public class MContextCardCardIntInt
| Constructor Summary | |
|---|---|
MContextCardCardIntInt(Targetable dest)
Creates a new instance of MContextCardCardIntInt |
|
MContextCardCardIntInt(Targetable dest,
int value)
Creates a new instance of MContextCardCardIntInt |
|
MContextCardCardIntInt(Targetable dest,
MCard source)
Creates a new instance of MContextCardCardIntInt |
|
MContextCardCardIntInt(Targetable dest,
MCard source,
int value,
int value2)
Creates a new instance of MContextCardCardIntInt |
|
MContextCardCardIntInt(Targetable dest,
MCard source,
int value,
int value2,
int maxTimeStamp1,
int maxTimeStamp2)
Creates a new instance of MContextCardCardIntInt |
|
| Method Summary | |
|---|---|
boolean |
checkTimeStamp(MCard card)
Verify the timestamp of the specified card |
boolean |
equals(java.lang.Object context)
|
MCard |
getCard2()
Return the MTargetable cast to MCard object of this context considering it's timstamp. |
MCard |
getOriginalCard2()
Return the MTargetable cast to MCard object of this context without considering it's timstamp. |
int |
getValue()
Returns The integer that was saved. |
int |
getValue2()
Returns The other integer that was saved. |
int |
hashCode()
|
boolean |
isNull2()
Indicates wether the second card is null or not. |
void |
removeTimestamp()
Decrement the reference counter for the current timestamp of this card. |
java.lang.String |
toString()
|
| Methods inherited from class net.sf.magicproject.event.context.MContextMtargetable |
|---|
getCard, getEventSource, getOriginalCard, getOriginalTargetable, getPlayer, getTargetable, getZoneContext |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MContextCardCardIntInt(Targetable dest)
dest - the MTargetable object to save to this context.
public MContextCardCardIntInt(Targetable dest,
int value)
dest - the MTargetable object to save to this context.value - the integer to save to this context.
public MContextCardCardIntInt(Targetable dest,
MCard source)
dest - the MTargetable object to save to this context.source - the Mcard object to save to this context.
public MContextCardCardIntInt(Targetable dest,
MCard source,
int value,
int value2)
dest - the MTargetable object to save to this context.source - the Mcard object to save to this context.value - the integer to save to this context.value2 - the integer to save to this context.
public MContextCardCardIntInt(Targetable dest,
MCard source,
int value,
int value2,
int maxTimeStamp1,
int maxTimeStamp2)
dest - the MTargetable object to save to this context.source - the Mcard object to save to this context.value - the integer to save to this context.value2 - the integer to save to this context.maxTimeStamp1 - is the maximum timestamp allowed for destination card during the
resolution.maxTimeStamp2 - is the maximum timestamp allowed for source card during the
resolution.| Method Detail |
|---|
public MCard getCard2()
public MCard getOriginalCard2()
public void removeTimestamp()
ContextEventListener
removeTimestamp in interface ContextEventListenerremoveTimestamp in class MContextMtargetablepublic final int getValue()
public final int getValue2()
public boolean checkTimeStamp(MCard card)
ContextEventListener
checkTimeStamp in interface ContextEventListenercheckTimeStamp in class MContextMtargetablecard - the concerned object.
public boolean isNull2()
public boolean equals(java.lang.Object context)
equals in class MContextMtargetablepublic int hashCode()
hashCode in class MContextMtargetablepublic java.lang.String toString()
toString in class MContextMtargetable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||