예제 #1
0
파일: Fighter.cs 프로젝트: minskowl/MY
 /// <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));
 }
예제 #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;
 }
예제 #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)
 {
 }
예제 #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;
 }
예제 #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)
 {
 }
예제 #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;
 }
예제 #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)
 {
 }
예제 #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);
 }