Exemplo n.º 1
0
        public static void UpdateAll(GameTime gameTime)
        {
            for (int i = 0; i < RtsBullets.Count; i++)
            {
                RtsBullet b = RtsBullets[i];

                if (b.Update(gameTime))
                {
                    i--;
                }
            }
        }
Exemplo n.º 2
0
        void performAttackIfStarted(AttackCommand command)
        {
            if (attackStarted)
            {
                if (timeSinceLastAttack >= initialAttackDelay)
                {
                    attackStarted = false;

                    RtsBullet b = new RtsBullet(this, command.Target, centerPoint, 5, 150);
                    b.Texture = BulletTexture;
                }
            }
        }
Exemplo n.º 3
0
        void performAttackIfStarted(AttackCommand command)
        {
            if (attackStarted)
            {
                if (timeSinceLastAttack >= initialAttackDelay)
                {
                    attackStarted = false;

                    RtsBullet b = new RtsBullet(this, command.Target, centerPoint, 5, 150);
                    b.Texture = BulletTexture;
                }
            }
        }