Beispiel #1
0
        //============================================================================*
        // AddBullet()
        //============================================================================*

        public bool AddBullet(cBullet Bullet, bool fCountOnly = false)
        {
            m_nImportCount++;

            foreach (cBullet CheckBullet in this)
            {
                if (CheckBullet.CompareTo(Bullet) == 0)
                {
                    m_nUpdateCount += CheckBullet.Append(Bullet, fCountOnly);

                    return(false);
                }
            }

            if (!fCountOnly)
            {
                Add(Bullet);
            }

            m_nNewCount++;

            Sort();

            return(true);
        }