// (c) 2005 kp@kp73.com
using System;
namespace KP.Tetris{
/// <summary>
/// View of an active tetris game.
/// </summary>
public class GameView
{
/// <summary>
/// Initialises a new instance of the GameView class.
/// </summary>
public GameView()
{
// a = null; // prevent compiler warning
}
/// <summary>
/// The active play area.
/// </summary>
internal Board m_board;
/// <summary>
/// Get the active play area.
/// </summary>
public Board Board
{
get { return m_board; }
}
/// <summary>
/// The active tetramino.
/// </summary>
internal Tetramino a;
/// <summary>
/// Get the active tetramino.
/// </summary>
public Tetramino ActiveTetramino
{
get { return a; }
}
/// <summary>
/// Cell map of the play area
/// incorperating the active tetramino.
/// </summary>
internal Cell[,] m_map;
/// <summary>
/// Get a cell map of the play area,
/// incorperating the active tetramino.
/// </summary>
public Cell[,] Map
{
get { return m_map; }
}
}
}
|