org.vizzini.game.cardgame
Interface ICard

All Superinterfaces:
Cloneable, Comparable, IToken, Serializable
All Known Implementing Classes:
AbstractCard, PokerCard

public interface ICard
extends IToken, Comparable

Defines methods required by a card for card games in the game framework.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson

Field Summary
static String SUIT_PROPERTY
          Name property name.
 
Fields inherited from interface org.vizzini.game.IToken
AGENT_PROPERTY, NAME_PROPERTY, POSITION_PROPERTY, TEAM_PROPERTY
 
Method Summary
 int getIndex()
          Return the index representing the card's name.
 ISuit getSuit()
          Return the suit.
 void setSuit(ISuit suit)
          Set the suit.
 
Methods inherited from interface org.vizzini.game.IToken
addPropertyChangeListener, clone, configure, getAgent, getName, getPosition, getTeam, getValue, removePropertyChangeListener, setAgent, setName, setPosition, setTeam, setValue
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

SUIT_PROPERTY

static final String SUIT_PROPERTY
Name property name.

See Also:
Constant Field Values
Method Detail

getIndex

int getIndex()
Return the index representing the card's name.

Specified by:
getIndex in interface IToken
Returns:
Return index.
Since:
v0.1

setSuit

void setSuit(ISuit suit)
Set the suit.

Since:
v0.1

getSuit

ISuit getSuit()
Return the suit.

Since:
v0.1


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02