コード例 #1
0
ファイル: Entity.cs プロジェクト: Catoryu/Cloud_Hunt_Project
        public override int getShooted(int score, CloudHunt game)
        {
            score = base.getShooted(score, game);
            if (this.Active)
            {
                switch (this.color)
                {
                case BaloonColor.blue:
                    //Gagne grande quantité de points
                    score          += 50;
                    game.timeLimit += 5.0f;
                    break;

                case BaloonColor.green:
                    //Prochains kills x5 points
                    game.killBonus = true;
                    break;

                case BaloonColor.red:
                    //Tir de zone
                    game.zoneShot   = true;
                    game.timeLimit += 5.0f;
                    break;

                case BaloonColor.yellow:
                    //Clean à points divisés par 2.5
                    game.instaKill  = true;
                    game.timeLimit += 5.0f;
                    break;
                }
            }
            this.Active = false;
            return(score);
        }
コード例 #2
0
ファイル: Entity.cs プロジェクト: Catoryu/Cloud_Hunt_Project
 public override int getShooted(int score, CloudHunt game)
 {
     score = base.getShooted(score, game);
     if (this.Active)
     {
         //Augmentation de points
         score += 5;
         if (game.killBonus)
         {
             score          += 15;
             game.timeLimit += 2.5f;
         }
         else if (game.instaKill)
         {
             score          -= 3;
             game.timeLimit -= 0.1f;
         }
     }
     this.Active = false;
     return(score);
 }
コード例 #3
0
ファイル: Entity.cs プロジェクト: Catoryu/Cloud_Hunt_Project
 public virtual int getShooted(int score, CloudHunt game)
 {
     return(score);
 }