コード例 #1
0
 /// <summary>
 /// If the macro is unit_player_ship_macro then the ship is the skunk.
 /// </summary>
 /// <returns></returns>
 public bool IsSkunk()
 {
     if (ShipMacro.StartsWith("unit_player_ship_") && ShipMacro.EndsWith("macro"))
     {
         return(true);
     }
     return(false);
 }
コード例 #2
0
 /// <summary>
 /// If the macro is units_size_xl_builder_ship_macro then the ship is a Construction Vessel.
 /// </summary>
 /// <returns></returns>
 public bool IsBuildingCV()
 {
     if (ShipMacro == "units_size_xl_builder_ship_macro" ||
         ShipMacro == "units_size_xl_builder_ship_dv_macro" ||
         ShipMacro == "units_size_xl_builder_ship_ol_macro" ||
         ShipMacro == "units_size_xl_builder_ship_plot_01_macro")
     {
         return(true);
     }
     else if (ShipMacro.StartsWith("units_size_xl_builder_ship"))
     {
         return(true);
     }
     return(false);
 }