org.cb.jset
Class CardSet
java.lang.Object
org.cb.jset.CardSet
- All Implemented Interfaces:
- java.io.Serializable
- public class CardSet
- extends java.lang.Object
- implements java.io.Serializable
A CardSet of cards in the game.
A set can be matching
or not.
- Version:
- $Id: CardSet.java 129 2004-04-15 05:00:43Z jerome $
- Author:
- jerome@coffeebreaks.org - last modified by $LastChangedBy: jerome $
- See Also:
- Serialized Form
Constructor Summary |
CardSet(CardProperties[] set)
Creates a new instance of CardSet given the specified card properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CardSet
public CardSet(CardProperties[] set)
- Creates a new instance of CardSet given the specified card properties.
- Parameters:
set
- the potential matching set
getCards
public CardProperties[] getCards()
- Returns:
- the cards in the set
isMatching
public boolean isMatching()
- Returns:
true
if the set is matching, false
otherwise.
toString
public java.lang.String toString()
- Returns:
- a
String
representation of that object.
main
public static void main(java.lang.String[] args)
- Parameters:
args
-
Copyright © 2004 CoffeeBreaks. All Rights Reserved.