jagafa.object
Class Hand

java.lang.Object
  extended by jagafa.object.CardList
      extended by jagafa.object.Hand

public class Hand
extends CardList

Hand is a CardList holding all the Cards in a Players hand


Constructor Summary
Hand()
          Constructor: Create a new Hand
Hand(CardList handCards)
          Constructor: Init the Hand with the Cards in the CardList
 
Method Summary
 void sort(RuleSet rules)
          Sort the Hand according to the RuleSet
 
Methods inherited from class jagafa.object.CardList
add, addAll, clear, contains, get, getGoneOfColor, isEmpty, iterator, list, remove, remove, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hand

public Hand()
Constructor: Create a new Hand


Hand

public Hand(CardList handCards)
Constructor: Init the Hand with the Cards in the CardList

Method Detail

sort

public void sort(RuleSet rules)
Sort the Hand according to the RuleSet

Parameters:
rules - The relevant RuleSet


Copyright 2005 MA Software. All Rights Reserved.