Exemplo n.º 1
0
        public Projectile getProjectile(float x, float y, float degOrientation)
        {
            //get a new projectile
            Projectile p = new Projectile(x, y, _originTank);

            //create logic for the projectile
            IProjectileLogic tmp = new ProtoProjectile(_originTank.Game, p);

            foreach (ProjectileDecorators a in ProjectileKind)
            {
                tmp = decorate(a, tmp);
            }

            p.Logic = tmp;
            return(p);
        }
Exemplo n.º 2
0
        public Projectile getProjectile(float x, float y, float degOrientation)
        {
            //get a new projectile
            Projectile p = new Projectile(x, y, _originTank);

            //create logic for the projectile
            IProjectileLogic tmp = new ProtoProjectile(_originTank.Game, p);

            foreach(ProjectileDecorators a in ProjectileKind)
            {
                tmp = decorate(a, tmp);
            }

            p.Logic = tmp;
            return p;
        }