|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.event.context.MContextMtargetable
public class MContextMtargetable
| Constructor Summary | |
|---|---|
MContextMtargetable(Targetable targetToSave)
Creates a new instance of MContextMtargetable |
|
MContextMtargetable(Targetable inTargetToSave,
int maxTimeStamp)
Creates a new instance of MContextMtargetable |
|
| Method Summary | |
|---|---|
boolean |
checkTimeStamp(MCard card)
Verify the timestamp of the specified card |
boolean |
equals(java.lang.Object context)
|
MCard |
getCard()
Return the MTargetable cast to MCard object of this context considering it's timstamp. |
MCard |
getEventSource()
Return the card source of the event attached to this context. |
MCard |
getOriginalCard()
Return the MTargetable cast to MCard object of this context without considering it's timstamp. |
Targetable |
getOriginalTargetable()
Return the MTargetable object of this context without considering it's timstamp. |
Player |
getPlayer()
Return the MTargetable object cast into MPlayer instance. |
Targetable |
getTargetable()
Return the MTargetable object of this context considering it's timstamp. |
int |
getZoneContext()
The zone attched to this context. |
int |
hashCode()
|
void |
removeTimestamp()
Decrement the reference counter for the current timestamp of this card. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MContextMtargetable(Targetable targetToSave)
targetToSave - is the object to store
public MContextMtargetable(Targetable inTargetToSave,
int maxTimeStamp)
inTargetToSave - is the object to storemaxTimeStamp - is the maximum timestamp allowed for destination card during the
resolution.| Method Detail |
|---|
public final Targetable getTargetable()
public final MCard getCard()
getTargetable()public void removeTimestamp()
ContextEventListener
removeTimestamp in interface ContextEventListenerpublic boolean checkTimeStamp(MCard card)
ContextEventListener
checkTimeStamp in interface ContextEventListenercard - the concerned object.
public final Player getPlayer()
public final Targetable getOriginalTargetable()
public final MCard getOriginalCard()
public boolean equals(java.lang.Object context)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic final MCard getEventSource()
ContextEventListener
getEventSource in interface ContextEventListenerpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getZoneContext()
ContextEventListener
getZoneContext in interface ContextEventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||