You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Trek-12/source/Trek-12/Models/Game/Position.cs

30 lines
672 B

namespace Models.Game
{
/// <summary>
/// The Position (x,y) of a cell in the game.
/// </summary>
public class Position
{
/// <summary>
/// The X coordinate.
/// </summary>
public int X { get; set; }
/// <summary>
/// The Y coordinate.
/// </summary>
public int Y { get; set; }
/// <summary>
/// Constructor of the Position class.
/// </summary>
/// <param name="x">The X coordinate.</param>
/// <param name="y">The Y coordinate.</param>
public Position(int x, int y)
{
X = x;
Y = y;
}
}
}