public void MousedOverHex(Hex hex) { if (highlighted_hex != hex)// && !hex.IsHighlighted()) { if (highlighted_hex != null) highlighted_hex.UnMouseHighlight(); highlighted_hex = hex; highlighted_hex.MouseHighlight(); UnhightlightEnemyHexes(); // Highlight all hexes the selected can attack from this hex if (SelectedUnitAvailableToControl()) { if (hex.IsHighlighted() || hex.occupying_unit == selected_unit) HighlightAttacksFromUnitLocationAndFrom(selected_unit, hex); else HighlightAttacksFromUnitLocationAndFrom(selected_unit, selected_unit.location); } } highlighted_hex = hex; ShowTerrainStatsPanel(hex); }