From 727be32d307830129e220cf909b1c4fc8f124f49 Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Sat, 26 Jan 2008 19:23:10 +0100 Subject: [PATCH] Added comments and reverted access level. --- 4DMemory/CardRow.cs | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/4DMemory/CardRow.cs b/4DMemory/CardRow.cs index a29aebd..955cabb 100644 --- a/4DMemory/CardRow.cs +++ b/4DMemory/CardRow.cs @@ -9,7 +9,7 @@ namespace Memory IList m_cards; public int m_dimension { - public get + get { return m_dimension; } @@ -19,21 +19,44 @@ namespace Memory } } + // Summary: + // Constructs a CardRow with the specified dimension + // + // Parameters: + // dimension: + // The dimension of the CardsGrid public CardRow(int dimension) { m_cards = new List(dimension); m_dimension = dimension; } - public void setCard(int y, Card card) - { - m_cards[y] = card; - } - + // Summary: + // Returns the card at the specified position + // + // Parameters: + // x: + // The x-coordinate of the card to be retreived + // + // Returns: + // The card at the specified position public Card getCard(int y) { Card card = m_cards[y]; return card; } + + // Summary: + // Sets the card at the specified position + // + // Parameters: + // x: + // The x-coordinate of the card to be set + // card: + // The card to be set + public void setCard(int y, Card card) + { + m_cards[y] = card; + } } } -- 2.11.4.GIT