// (c) 2005 kp@kp73.com
using System;
namespace KP.Tetris{
/// <summary>
/// Location within a cell map.
/// </summary>
public class Coordinate
{
/// <summary>
/// Horizonal position.
/// </summary>
private int m_x;
/// <summary>
/// Vertical position.
/// </summary>
private int m_y;
/// <summary>
/// Get or set the horizonal position.
/// </summary>
public int X { get { return m_x; } set { m_x = value; } }
/// <summary>
/// Get or set the v ertical position.
/// </summary>
public int Y { get { return m_y; } set { m_y = value; } }
/// <summary>
/// Initialises a new instance of the Coordinate class.
/// </summary>
/// <param name="row">Horizonal position.</param>
/// <param name="column">Vertical position.</param>
public Coordinate(int row, int column)
{
m_x = row;
m_y = column;
}
}
}
|