public static string getAirControlType(AirControlType at) { switch(at) { case AirControlType.FullControl: return "占据制空权"; case AirControlType.Advance: return "制空权优势"; case AirControlType.Disadvace: return "制空权劣势"; case AirControlType.LoseControl: return "丧失制空权"; default: case AirControlType.Equal: return "势均力敌 "; } }
public void ShowAirWarBuff(AirControlType airControlType) { WarBuff none = WarBuff.None; WarBuff buff = WarBuff.None; switch (airControlType) { case AirControlType.FullControl: none = WarBuff.Air1; buff = WarBuff.Air5; break; case AirControlType.Advance: none = WarBuff.Air2; buff = WarBuff.Air4; break; case AirControlType.Equal: none = WarBuff.Air3; buff = WarBuff.Air3; break; case AirControlType.Disadvace: none = WarBuff.Air4; buff = WarBuff.Air2; break; case AirControlType.LoseControl: none = WarBuff.Air5; buff = WarBuff.Air1; break; } if (none != WarBuff.None) { this.AddSelfBuff(none); } if (buff != WarBuff.None) { this.AddEnemyBuff(buff); } }