Ejemplo n.º 1
0
 private void Client_SelectedCommandChanged(object sender, UnitCommandIDEventArgs e)
 {
     // change the cursor based on the selected command
     // TODO fix this
     if (UnitCommand.GetTargetType(e.UnitCommandID) == UnitCommandTargetType.Tile)
     {
         unitCommandTargetCursor.Enable();
     }
     else
     {
         defaultCursor.Enable();
     }
 }
Ejemplo n.º 2
0
 private void Client_SelectedCommandChanged(object sender, UnitCommandIDEventArgs e)
 {
     // recalc move targets if the selected command changes
     CalculateMoveTargets(e.UnitCommandID);
 }