org.cb.jset
Class CardSet

java.lang.Object
  extended byorg.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.
 
Method Summary
 CardProperties[] getCards()
           
 boolean isMatching()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CardSet

public CardSet(CardProperties[] set)
Creates a new instance of CardSet given the specified card properties.

Parameters:
set - the potential matching set
Method Detail

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.