|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.clickable.targetable.card.CardModelImpl
public class CardModelImpl
Constructor Summary | |
---|---|
CardModelImpl(CardModelImpl other)
Create a new instance of this class from another instance. |
|
CardModelImpl(java.lang.String cardName)
Creates a new instance with the specified card name(id). |
|
CardModelImpl(java.lang.String cardName,
java.io.InputStream inputStream)
Complete this instance with content of specified stream. |
Method Summary | |
---|---|
int |
compareTo(CardModel o)
|
Ability[] |
getAbilities()
Return the list of actions when casting |
Attachment |
getAttachment()
Returns the optional attachment condition and modifiers brought by this card. |
java.lang.String |
getCardName()
Returns the english name of this card. |
int |
getIdCard()
Return the type of this card |
int |
getIdColor()
Return the printed Colors of this card. |
java.lang.String |
getKeyName()
Returns the file-serializable card name. |
java.lang.String |
getLanguage()
Returns the language used for this card. |
java.lang.String |
getLocalName()
Returns the translated name. |
ModifierModel |
getModifierModels()
Return the shared modifier models. |
int[] |
getProperties()
Return the properties of this card. |
java.lang.String |
getRulesCredit()
XML rule designer of loaded cards. |
int[] |
getStaticRegisters()
Return shared registers of this targetable. |
boolean |
hasKeywords(java.lang.String keyword)
Indicates this card contains or not the specified keyword. |
void |
setAbilities(java.util.List<Ability> abilities)
|
void |
setCardName(java.lang.String cardName)
The the new card name. |
void |
setIdCard(int idCard)
Set idCard. |
void |
setIdColor(int idColor)
Set color set. |
void |
setLocalName(java.lang.String localName)
Set the translated card name. |
void |
setModifierModels(ModifierModel modifierModels)
Set the shared modifier models. |
void |
setRulesCredits(java.lang.String cardRulesCredits)
Set XML rule designer of this card. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CardModelImpl(java.lang.String cardName)
cardName
- the card name (id) of this instance.public CardModelImpl(java.lang.String cardName, java.io.InputStream inputStream)
cardName
- the card name (id) of this instance.inputStream
- the input stream containing the data of this card.public CardModelImpl(CardModelImpl other)
other
- the model's properties to copy to this instance.Method Detail |
---|
public java.lang.String getLanguage()
CardModel
getLanguage
in interface CardModel
public java.lang.String getKeyName()
CardModel
getKeyName
in interface CardModel
public java.lang.String getLocalName()
CardModel
getLocalName
in interface CardModel
public java.lang.String getCardName()
CardModel
getCardName
in interface CardModel
public void setRulesCredits(java.lang.String cardRulesCredits)
CardModel
setRulesCredits
in interface CardModel
cardRulesCredits
- the XML rule designer of loaded cards.public void setLocalName(java.lang.String localName)
CardModel
setLocalName
in interface CardModel
localName
- the new local name.public java.lang.String getRulesCredit()
CardModel
getRulesCredit
in interface CardModel
public boolean hasKeywords(java.lang.String keyword)
CardModel
hasKeywords
in interface CardModel
keyword
- the tested keyword.
public java.lang.String toString()
toString
in class java.lang.Object
public int getIdCard()
CardModel
getIdCard
in interface CardModel
public int getIdColor()
CardModel
getIdColor
in interface CardModel
public int[] getStaticRegisters()
CardModel
getStaticRegisters
in interface CardModel
public int[] getProperties()
CardModel
getProperties
in interface CardModel
public Ability[] getAbilities()
CardModel
getAbilities
in interface CardModel
public ModifierModel getModifierModels()
CardModel
getModifierModels
in interface CardModel
public void setModifierModels(ModifierModel modifierModels)
CardModel
setModifierModels
in interface CardModel
modifierModels
- The new modifierModels to set.public Attachment getAttachment()
CardModel
getAttachment
in interface CardModel
null
if there is no attachment brought
by this card.public int compareTo(CardModel o)
compareTo
in interface java.lang.Comparable<CardModel>
compareTo
in interface CardModel
public void setIdCard(int idCard)
idCard
- the new idCardpublic void setIdColor(int idColor)
idColor
- the new color set.public void setCardName(java.lang.String cardName)
cardName
- the new card name.public void setAbilities(java.util.List<Ability> abilities)
abilities
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |