コード例 #1
0
        void addSheeps()
        {
            Nave auxol = colaNaves.Dequeue();

            if (auxol != null)
            {
                if (activeNaves.Count <= 20)
                {
                    auxol.cloneSheep();
                }
                else
                {
                    colaNaves.Enqueue(auxol);
                }
            }
        }
コード例 #2
0
 void Nave_shootNou(Nave arg1, Bullet arg2)
 {
     activeBullets.Add(arg2);
 }
コード例 #3
0
        public void cloneSheep()
        {
            Nave retornable = new Nave(name, hp, width, height, startSound, deathSound, fireSound, hitSound, speed, damage, provavilityFire, speedBullet, provavilityAppears, bulletWidth, bulletHeight, coloring);

            ready(retornable);
        }