/**
* A FoundationRow is a single row in a foundation. It has a start card,
* which determines the step size in number of pips between cards in a row.
*/
public class FoundationRow
{
/**
* Constructor for objects of class FoundationRow that will not be
* displayed graphically.
* @param startNumber the pip count for the first card in the row,which is also the difference in pip values for adjacent cards
* in this row.This must be value in the range 1-4 inclusive.
* @param deck the deck of cards from which the first card whose pip count equals startNumber is extracted as first card in the
* row.When the constructor returns,the number of cards in the deck will be one less than when it was called due to the removal of
* this card.It may be assumed that the given deck contains such a card.
*/
public FoundationRow(int startNumber, Deck deck)
{
}
/**
* Constructor for objects of class FoundationRow that are to be displayed graphically.
* @param x the x-coordinates of the top-left-hand corner of the row when drawn on a Graphics object.
* @param y the y-coordinates of the top-left-hand corner of the row when drawn on a Graphics object.
*/
public FoundationRow (int startNumber, Deck deck, int x, int y)
{
}
/**
* Draw this row of the foundation at the specified location on the given graphics
* @param g the graphics on which the row is to be drawn.
*/
public void draw(java.awt.Graphics.g)
{
}
/**
* An array of 13 elements,each of which is either a Card or null.If the row contains n (1-13 inclusive) cards,
* element 0...n-1 will be the cards, and elements n onwards will all be null.This is just a getter method for the
* array of cards in this foundation row.
* @return an array of 13 elements,with the first n being the cards in this row and the remaining 13-n being null,
* when n is the number of cards currently in this row.
*/
public Card[] getCards()
{
}
public java.awt.Dimension getSize()
{
}
/**
* Add(or attempt to add)the given card to this row.Returns true if the add is successful,i.e.,the difference between
* the number of pips on this card and the number of pips on the card currently at the end of the row is equal to the
* number of pips on the card at the start of the row.If the parameter is null,the method returns false
* @param card the card to be add to the row,if possible.
* @return true if and only if the add succeeds.
*/
public boolean putCard(Card card)
{
}
/**
* A string representation of the object.This is the string representations of each card in the row,separated by single space.
* There are no spaces at the start or end of the row--only between the individual cards.
* @overrides toString in class java.lang.Object
*/
public String toString()
{
}
}