コード例 #1
0
ファイル: Pirate.cs プロジェクト: tacticalcheese/Andras89
        public void Brawl(Pirate otherSeaScum)
        {
            if (Alive && otherSeaScum.IsAlive())
            {
                int chances = RandomValue.Next(1, 4);
                switch (chances)
                {
                case 1:
                    Alive = false;
                    break;

                case 2:
                    otherSeaScum.Die();
                    break;

                case 3:
                    Awake = false;
                    otherSeaScum.PassOut();
                    break;
                }
            }
        }
コード例 #2
0
 public PirateShip()
 {
     Captain = new Pirate();
 }