public void Click(ScreenDrawingSurface surface, System.Drawing.Point location)
{
// select nearest entity
var index = surface.Screen.FindEntityAt(location);
surface.Screen.SelectEntity(index);
surface.ReDrawEntities();
heldEntity = surface.Screen.GetEntity(index);
if (heldEntity != null)
{
entityAnchor = new Point(location.X - (int)heldEntity.screenX, location.Y - (int)heldEntity.screenY);
}
else
{
entityAnchor = Point.Empty;
}
}