From bd40f6995064b22805d7ac52c2ff8cdec1c27d37 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 26 Jan 2008 18:59:05 +0100 Subject: [PATCH] Added CardsGrid class --- 4DMemory/CardsGrid.cs | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 4DMemory/CardsGrid.cs diff --git a/4DMemory/CardsGrid.cs b/4DMemory/CardsGrid.cs new file mode 100644 index 0000000..cbc3679 --- /dev/null +++ b/4DMemory/CardsGrid.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Memory +{ + class CardsGrid + { + private IList m_cardsPlane; + public int m_dimension + { + public get + { + return m_dimension; + } + private set + { + m_dimension = value; + } + } + + public CardsGrid(int dimension) + { + m_dimension = dimension; + m_cardsPlane = new List(dimension); + } + + public void setCard(int x, int y, int z, Card card) + { + CardsPlane cardsplane = m_cardsPlane[z]; + cardsplane.setCard(x, y, card); + } + } +} -- 2.11.4.GIT