org.vizzini.game.cardgame
Class PokerCard

java.lang.Object
  extended by org.vizzini.game.AbstractToken
      extended by org.vizzini.game.cardgame.AbstractCard
          extended by org.vizzini.game.cardgame.PokerCard
All Implemented Interfaces:
Serializable, Cloneable, Comparable, ICard, IToken

public class PokerCard
extends AbstractCard

Provides a poker card for card games in the game framework.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.vizzini.game.AbstractToken
UNKNOWN_NAME
 
Fields inherited from interface org.vizzini.game.cardgame.ICard
SUIT_PROPERTY
 
Fields inherited from interface org.vizzini.game.IToken
AGENT_PROPERTY, NAME_PROPERTY, POSITION_PROPERTY, TEAM_PROPERTY
 
Constructor Summary
PokerCard()
           
 
Method Summary
 int getIndex()
          Return the index representing the card's name.
static int getIndex(String name)
          Return the index representing the card's name.
 
Methods inherited from class org.vizzini.game.cardgame.AbstractCard
compareTo, equals, getSuit, hashCode, setSuit, toString
 
Methods inherited from class org.vizzini.game.AbstractToken
addPropertyChangeListener, clone, configure, copy, getAgent, getName, getPosition, getPropertyChangeManager, getTeam, getValue, isFiringPositionChanges, removePropertyChangeListener, setAgent, setFiringPositionChanges, setIndex, setName, setPosition, setTeam, setValue
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.vizzini.game.IToken
addPropertyChangeListener, clone, configure, getAgent, getName, getPosition, getTeam, getValue, removePropertyChangeListener, setAgent, setName, setPosition, setTeam, setValue
 

Constructor Detail

PokerCard

public PokerCard()
Method Detail

getIndex

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

Since:
v0.1

getIndex

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

Specified by:
getIndex in interface ICard
Specified by:
getIndex in interface IToken
Overrides:
getIndex in class AbstractToken
Returns:
Return index.
Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02