27 lines
488 B
C#
27 lines
488 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Microsoft.Xna.Framework;
|
|||
|
|
|||
|
|
|||
|
public class PQEntry : IComparable<PQEntry>
|
|||
|
{
|
|||
|
public int Key { get; set; }
|
|||
|
public Vector2 Coordinates { get; set; }
|
|||
|
|
|||
|
public int CompareTo(PQEntry other)
|
|||
|
{
|
|||
|
if (this.Key < other.Key)
|
|||
|
return -1;
|
|||
|
else if (this.Key > other.Key)
|
|||
|
return 1;
|
|||
|
else
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|