/// <summary> /// Initializes a new instance of the <see cref="Fighter"/> class. /// </summary> /// <param name="machine">The machine.</param> public Fighter(FightMachine machine) : base(machine) { Add(new HotListRivalSource(machine)); Add(new RandomRivalSource(machine)); Add(new FarmRivalSource(machine, machine.Farm)); Add(new FarmRivalSource(machine, machine.ListFarm)); Add(new StaffListRivalSource(machine, RandomSearchMode.RobberyList, RivalSource.StaffRobberyList)); Add(new StaffListRivalSource(machine, RandomSearchMode.GloryList, RivalSource.StaffGloryList)); Add(new StaffListRivalSource(machine, RandomSearchMode.RevengeList, RivalSource.StaffRevengeList)); }
/// <summary> /// Initializes a new instance of the <see cref="MachineWrapper"/> class. /// </summary> /// <param name="machine">The machine.</param> public MachineWrapper(FightMachine machine) { _machine = machine; }
/// <summary> /// Initializes a new instance of the <see cref="RivalSourceBase"/> class. /// </summary> /// <param name="machine">The machine.</param> protected RivalSourceBase(FightMachine machine) : base(machine) { }
/// <summary> /// Initializes a new instance of the <see cref="FarmRivalSource"/> class. /// </summary> /// <param name="machine">The machine.</param> /// <param name="farm">The farm.</param> public FarmRivalSource(FightMachine machine, FarmBase farm) : base(machine) { _farm = farm; }
/// <summary> /// Initializes a new instance of the <see cref="RandomRivalSource"/> class. /// </summary> /// <param name="machine">The machine.</param> public RandomRivalSource(FightMachine machine) : base(machine) { }
/// <summary> /// Initializes a new instance of the <see cref="RandomRivalSource"/> class. /// </summary> /// <param name="machine">The machine.</param> /// <param name="mode">The mode.</param> /// <param name="type">The type.</param> public StaffListRivalSource(FightMachine machine, RandomSearchMode mode, RivalSource type) : base(machine) { this.mode = mode; this._type = type; }
/// <summary> /// Initializes a new instance of the <see cref="HotListRivalSource"/> class. /// </summary> /// <param name="machine">The machine.</param> public HotListRivalSource(FightMachine machine) : base(machine) { }
/// <summary> /// Initializes a new instance of the <see cref="FightLoginedState"/> class. /// </summary> /// <param name="automaton">The automaton.</param> public FightLoginedState(FightMachine automaton) : base(automaton) { fightMachine = automaton; _fighter = new Fighter(automaton); }