예제 #1
0
 internal Pilot(string shipName, string name, bool unique, IFaction faction, int cost, PilotStatPackage stats, string pilotAbility,
                string imageUri, IShipSize shipSize, HashSet <IAction> actions, IReadOnlyList <IUpgradeSlot> upgrades, string shipIcon)
 {
     Name          = name;
     Faction       = faction;
     ShipName      = shipName;
     Unique        = unique;
     PilotAbility  = pilotAbility;
     Image         = imageUri;
     ShipSize      = shipSize;
     AbilityEngine = new PilotAbilityEngine(stats, actions, upgrades);
     AbilityEngine.PropertyChanged += AbilityEngine_PropertyChanged;
     this.Cost = cost;
     ShipIcon  = shipIcon;
     Id        = Guid.NewGuid();
 }
예제 #2
0
 private Pilot(string shipName, string name, bool unique, IFaction faction, int cost, string pilotAbility,
               string imageUri, IShipSize shipSize, PilotAbilityEngine engine, string shipIcon)
 {
     Name          = name;
     Faction       = faction;
     ShipName      = shipName;
     Unique        = unique;
     PilotAbility  = pilotAbility;
     Image         = imageUri;
     ShipSize      = shipSize;
     AbilityEngine = engine;
     AbilityEngine.PropertyChanged += AbilityEngine_PropertyChanged;
     this.Cost = cost;
     ShipIcon  = shipIcon;
     Id        = Guid.NewGuid();
 }
예제 #3
0
 public bool Equals(IShipSize other)
 {
     return(ToString().Equals(other.ToString()));
 }
예제 #4
0
 public int CompareTo(IShipSize other)
 {
     return(ToString().CompareTo(other.ToString()));
 }
 public NotContainsShipSizeSpecification(IShipSize shipSize)
 {
     this.shipSize = shipSize;
 }