2017-01-06 18:57:58 +00:00
|
|
|
|
using System;
|
2017-03-04 21:49:51 +00:00
|
|
|
|
|
2017-01-06 18:57:58 +00:00
|
|
|
|
namespace Nibriboard.RippleSpace
|
|
|
|
|
{
|
2017-01-06 19:05:27 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// An abstract class representing a coordinate reference to a location.
|
|
|
|
|
/// </summary>
|
2017-01-06 18:57:58 +00:00
|
|
|
|
public abstract class Reference
|
|
|
|
|
{
|
2017-01-06 20:45:35 +00:00
|
|
|
|
public readonly Plane Plane;
|
|
|
|
|
|
2017-01-06 18:57:58 +00:00
|
|
|
|
public int X { get; set; }
|
|
|
|
|
public int Y { get; set; }
|
2017-01-06 20:45:35 +00:00
|
|
|
|
|
|
|
|
|
public Reference(Plane inPlane, int inX, int inY)
|
|
|
|
|
{
|
|
|
|
|
Plane = inPlane;
|
2017-04-28 21:25:55 +00:00
|
|
|
|
X = inX; Y = inY;
|
2017-01-06 20:45:35 +00:00
|
|
|
|
}
|
2017-01-07 20:19:21 +00:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"({X}, {Y}, {Plane.Name})";
|
|
|
|
|
}
|
2017-01-06 18:57:58 +00:00
|
|
|
|
}
|
|
|
|
|
}
|