Example #1
0
        public override void Create(Fighter fighter)
        {
            BTrackBullet = IsTrackBullet(fighter.RankTypeAttr);
            LayoutAttr   = CommonHelper.GetEnemyBulletLayout(fighter);
            MyForm.SetLayout(LayoutAttr);
            switch (fighter.RankTypeAttr)
            {
            case RankLevel.Level1:
                PowerTypeAttr = PowerLevel.Level1;
                SpeedTypeAttr = SpeedType.Level1;
                MyForm.SetImage(Common.NORMAL_ENEMY_BULLET_IMAGE);
                break;

            case RankLevel.Level2:
                PowerTypeAttr = PowerLevel.Level2;
                SpeedTypeAttr = SpeedType.Level1;
                MyForm.SetImage(Common.SUPER_ENEMY_BULLET_IMAGE);
                break;

            case RankLevel.Level3:
                PowerTypeAttr = PowerLevel.Level2;
                SpeedTypeAttr = SpeedType.Level2;
                break;

            case RankLevel.Level4:
                PowerTypeAttr = PowerLevel.Level3;
                SpeedTypeAttr = SpeedType.Level2;
                break;
            }
        }
 public override void Dispose()
 {
     if (_thread != null)
     {
         _bStop = true;
         if (_thread.Join(1000))
         {
             _thread.Abort();
             _thread = null;
         }
     }
     if (MyForm != null)
     {
         MyForm.Dispose();
         MyForm = null;
     }
 }