Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MachineWrapper"/> class.
 /// </summary>
 /// <param name="machine">The machine.</param>
 public MachineWrapper(FightMachine machine)
 {
     _machine = machine;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RivalSourceBase"/> class.
 /// </summary>
 /// <param name="machine">The machine.</param>
 protected RivalSourceBase(FightMachine machine)
     : base(machine)
 {
 }
Esempio n. 4
0
 /// <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;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RandomRivalSource"/> class.
 /// </summary>
 /// <param name="machine">The machine.</param>
 public RandomRivalSource(FightMachine machine)
     : base(machine)
 {
 }
Esempio n. 6
0
 /// <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;
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HotListRivalSource"/> class.
 /// </summary>
 /// <param name="machine">The machine.</param>
 public HotListRivalSource(FightMachine machine)
     : base(machine)
 {
 }
Esempio n. 8
0
 /// <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);
 }