Пример #1
0
 public Arrow(CatchMode.Game.Arrow.ArrowType enType)
 {
     this.enType = enType;
 }
Пример #2
0
 public PetCatchRenderCompontent(CatchMode xCatchMode)
 {
     this.xCatchMode = xCatchMode;
 }
Пример #3
0
 public void Input(CatchMode.Game.Arrow.ArrowType enType)
 {
     if (this.lxActiveArrows.Count > 0 && this.lxActiveArrows[0].fProgress > this.fPerfectAt - this.fFailMargin)
     {
         CatchMode.Game.Arrow xArrow = this.lxActiveArrows[0];
         this.lxOldArrows.Add(xArrow);
         CatchMode.Game.Arrow.ClearGrade enGrade = CatchMode.Game.Arrow.ClearGrade.Miss;
         if (enType == xArrow.enType && this.lxActiveArrows[0].fProgress > this.fPerfectAt - this.fNiceMargin)
         {
             if (xArrow.fProgress > this.fPerfectAt - this.fPerfectMargin && xArrow.fProgress < this.fPerfectAt + this.fPerfectMargin)
             {
                 enGrade = CatchMode.Game.Arrow.ClearGrade.Perfect;
                 this.iTimeToSurvive -= 40;
             }
             else if (xArrow.fProgress > this.fPerfectAt - this.fGreatMargin && xArrow.fProgress < this.fPerfectAt + this.fGreatMargin)
             {
                 enGrade = CatchMode.Game.Arrow.ClearGrade.Great;
                 this.iTimeToSurvive -= 15;
             }
             else if (xArrow.fProgress > this.fPerfectAt - this.fNiceMargin && xArrow.fProgress < this.fPerfectAt + this.fNiceMargin)
             {
                 enGrade = CatchMode.Game.Arrow.ClearGrade.Nice;
             }
             if (this.iCounter > this.iTimeToSurvive)
             {
                 this.iSuccess = this.iSuccessNeeded;
             }
         }
         if (enGrade == CatchMode.Game.Arrow.ClearGrade.Miss)
         {
             xArrow.iCleared = -1;
             xArrow.enClearGrade = CatchMode.Game.Arrow.ClearGrade.Miss;
             this.iFails++;
             Program.GetTheGame().xSoundSystem.PlayInterfaceCue("Rabby_DamageSolo");
             this.iJustFailed = 10;
         }
         else
         {
             xArrow.iCleared = 1;
             xArrow.enClearGrade = enGrade;
             Program.GetTheGame().xSoundSystem.PlayInterfaceCue("Itempickup");
         }
         this.lxActiveArrows.Remove(xArrow);
     }
 }
Пример #4
0
 public PlayerEntity(PlayerView p_owner)
 {
     this.enEntityType = IEntity.EntityType.Player;
     this.Owner = p_owner;
     this.xCatchMode = new CatchMode(this.Owner);
     this.xBaseStats = new BaseStats(this);
     this.SetBaseStats();
 }