net.sf.magicproject.chart
Class CardManaCost
java.lang.Object
net.sf.magicproject.chart.CardManaCost
- All Implemented Interfaces:
- java.lang.Comparable<IChartKey>, IChartKey
public class CardManaCost
- extends java.lang.Object
- implements IChartKey
- Since:
- 0.93
- Author:
- Fabrice Daugan
|
Constructor Summary |
CardManaCost(int amount)
Create a new instance of this class. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
UNKNOW_MANACOST
public static final IChartKey UNKNOW_MANACOST
CardManaCost
public CardManaCost(int amount)
- Create a new instance of this class.
- Parameters:
amount - mana cost amount.
toString
public java.lang.String toString()
- Specified by:
toString in interface IChartKey- Overrides:
toString in class java.lang.Object
getDefault
public IChartKey getDefault()
- Specified by:
getDefault in interface IChartKey
- Returns:
- the default value of this key type.
compareTo
public int compareTo(IChartKey o)
- Specified by:
compareTo in interface java.lang.Comparable<IChartKey>
getIntegerKey
public int getIntegerKey()
- Description copied from interface:
IChartKey
- Return the integer key.
- Specified by:
getIntegerKey in interface IChartKey
- Returns:
- the integer key.
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
processAdd
public void processAdd(java.util.List<IChartKey> workingKeys)
- Description copied from interface:
IChartKey
- Add this key to the specified list.
- Specified by:
processAdd in interface IChartKey
- Parameters:
workingKeys - the current key list.
Copyright © 2003-2007 Magic-Project. All Rights Reserved.