net.sf.magicproject.clickable.targetable.card
Class Attachment

java.lang.Object
  extended by net.sf.magicproject.clickable.targetable.card.Attachment

public class Attachment
extends java.lang.Object

Since:
0.91
Author:
Fabrice Daugan

Method Summary
 void attach(ContextEventListener context, Ability ability, MCard from, MCard to)
           
 ModifierModel[] getModifiers()
          Returns the modifiers brought by this attachment.
 Test getValidAttachment()
          Returns the test maintening the attachment with another component.
 Test getValidTarget()
          Returns the initial test making valid the attachment with another component.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getModifiers

public ModifierModel[] getModifiers()
Returns the modifiers brought by this attachment.

Returns:
the modifiers brought by this attachment.

getValidTarget

public Test getValidTarget()
Returns the initial test making valid the attachment with another component.

Returns:
the initial test making valid the attachment with another component.

getValidAttachment

public Test getValidAttachment()
Returns the test maintening the attachment with another component.

Returns:
the test maintening the attachment with another component.

attach

public void attach(ContextEventListener context,
                   Ability ability,
                   MCard from,
                   MCard to)
Parameters:
context - the context of playing ability.
ability - the playing ability.
from - the card to attach.
to - the attchment destination.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.