public CrewHiredEvent(DateTime timestamp, string name, string faction, long price, CombatRating combatrating) : base(timestamp, NAME) { this.name = name; this.faction = faction; this.price = price; this.combatrating = combatrating.name; }
public ShipInterdictionEvent(DateTime timestamp, bool succeeded, bool iscommander, string interdictee, CombatRating rating, string faction, string power) : base(timestamp, NAME) { this.succeeded = succeeded; this.iscommander = iscommander; this.interdictee = interdictee; this.rating = (rating == null ? null : rating.name); this.faction = faction; this.power = power; }
public CommanderRatingsEvent(DateTime timestamp, CombatRating combat, TradeRating trade, ExplorationRating exploration, CQCRating cqc, EmpireRating empire, FederationRating federation) : base(timestamp, NAME) { this.combat = combat; this.trade = trade; this.exploration = exploration; this.cqc = cqc; this.empire = empire; this.federation = federation; }
public static CombatRating FromRank(int from) { CombatRating result = RATINGS.FirstOrDefault(v => v.rank == from); if (result == null) { Logging.Report("Unknown Combat Rating rank " + from); } return(result); }
public static CombatRating FromName(string from) { CombatRating result = RATINGS.FirstOrDefault(v => v.name == from); if (result == null) { Logging.Report("Unknown Combat Rating name " + from); } return(result); }
public static CombatRating FromEDName(string from) { string tidiedFrom = from == null ? null : from.ToLowerInvariant(); CombatRating result = RATINGS.FirstOrDefault(v => v.edname.ToLowerInvariant() == tidiedFrom); if (result == null) { Logging.Report("Unknown Combat Rating ED name " + from); } return(result); }
public Killer(string edName, string edModel, CombatRating rating) { this.name = edName; this.combatRating = rating; // Might be a ship killerShip = ShipDefinitions.FromEDModel(edModel, false); // Might be a SRV or Fighter killerVehicle = VehicleDefinition.EDNameExists(edModel) ? VehicleDefinition.FromEDName(edModel) : null; // Might be an on foot commander killerCmdrSuit = Suit.EDNameExists(edModel) ? Suit.FromEDName(edModel) : null; // Might be an on foot NPC killerNpcSuitLoadout = NpcSuitLoadout.EDNameExists(edModel) ? NpcSuitLoadout.FromEDName(edModel) : null; }
public Target(string name, CombatRating combatrank, string ship) { this.name = name; this.CombatRank = combatrank; this.ship = ship; }
public KilledEvent(DateTime timestamp, string victim, CombatRating rating) : base(timestamp, NAME) { this.victim = victim; this.rating = (rating == null ? null : rating.name); }
public CombatPromotionEvent(DateTime timestamp, CombatRating rating) : base(timestamp, NAME) { this.rating = rating.name; }