MyPolarBear.GameObjects.PolarBear.giveAttackCommand C# (CSharp) Method

giveAttackCommand() private method

private giveAttackCommand ( String targetType ) : void
targetType String
return void
        private void giveAttackCommand(String targetType)
        {
            foreach (Entity ene in UpdateKeeper.getInstance().getEntities())
            {
                if (ene is Enemy && ((Enemy)ene).CurrentState == Enemy.State.Following)
                {
                    ((Enemy)ene).AddCommand(new AttackAI(ene, targetType));
                }
            }
        }