|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.game.cardgame.AbstractSuit
public abstract class AbstractSuit
Provides base functionality for a suit for card games in the game framework.
Constructor Summary | |
---|---|
AbstractSuit()
|
Method Summary | |
---|---|
int |
compareTo(Object object)
Compare this to the given object. |
void |
configure(Properties properties,
int index)
Configure this suit. |
boolean |
equals(Object object)
Return true if this equals the given object. |
String |
getName()
Return the name. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setName(String name)
Set the name. |
String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractSuit()
Method Detail |
---|
public int compareTo(Object object)
compareTo
in interface Comparable
ClassCastException
- if another is not an instance of
AbstractCard
.public void configure(Properties properties, int index)
configure
in interface ISuit
properties
- Source of configuration information.index
- Index of this suit's properties.public boolean equals(Object object)
equals
in class Object
public String getName()
getName
in interface ISuit
public int hashCode()
hashCode
in class Object
public void setName(String name)
setName
in interface ISuit
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |