Ejemplo n.º 1
0
 public HitHandler(IFishStage _Stage, HitRequest request)
 {
     this._Stage = _Stage;
     _Request = request;
     _Enable = true;
     _TimeCounter = new TimeCounter();
 }
Ejemplo n.º 2
0
        private void _ToPlayStage(IFishStage fish_stage)
        {
            var stage = new PlayStage(_Binder, fish_stage, _GamePlayerRecord);

            stage.PassEvent += _Pass;
            stage.KillEvent += _Kill;
            _Machine.Push(stage);
        }
Ejemplo n.º 3
0
 public PlayStage(ISoulBinder binder, IFishStage fish_stage, GamePlayerRecord money)
 {
     _Fishs = new List<Fish>();
     _Bullets = new List<Bullet>();
     _Requests = new Dictionary<int, HitRequest>();
     _Binder = binder;
     _FishStage = fish_stage;
     _DeadFishCount = 0;
     _Money = money;
     _WeaponType = WEAPON_TYPE.NORMAL;
     _WeaponBet = 10;
 }
Ejemplo n.º 4
0
 public PlayStage(ISoulBinder binder, IFishStage fish_stage, GamePlayerRecord money)
 {
     _Fishs         = new List <Fish>();
     _Bullets       = new List <Bullet>();
     _Requests      = new Dictionary <int, HitRequest>();
     _Binder        = binder;
     _FishStage     = fish_stage;
     _DeadFishCount = 0;
     _Money         = money;
     _WeaponType    = WEAPON_TYPE.NORMAL;
     _WeaponBet     = 10;
 }
Ejemplo n.º 5
0
 private void _Stage(IFishStage obj)
 {
     DoneEvent(obj);
 }
Ejemplo n.º 6
0
 private void _ToPlay(IFishStage fish_stage)
 {
     var stage = new BotPlayStage(fish_stage);
     stage.DoneEvent += _ToConnect;
     _Machine.Push(stage);
 }
Ejemplo n.º 7
0
 public BotPlayStage(IFishStage fish_stage)
 {
     _HitHandlers = new Updater();
     _HitTime = new TimeCounter();
     _Stage = fish_stage;
 }
Ejemplo n.º 8
0
 private void _ToPlayStage(IFishStage fish_stage)
 {
     var stage = new PlayStage(_Binder, fish_stage, _GamePlayerRecord);
     stage.PassEvent += _Pass;
     stage.KillEvent += _Kill;
     _Machine.Push(stage);
 }
Ejemplo n.º 9
0
 public HitRequestConverter(IFishStage gpi)
 {
     _Gpi = gpi;
 }