Пример #1
0
        public void reuse(Entity e,Weapon w,EntityType t,List<Entity> bulletList,List<Entity> trashBullets)
        {
            this.setLocation(e.frontLoc.X, e.frontLoc.Y);
            this.setRotate(e.Rotate);
            //this.setBulletType(w);

            this.attackValue = w.getAttackValue();
            this.speedValue = w.getSpeedValue();
            this.health = w.getHealth();
            this.state = w.getState();

            trashBullets.Remove(this);
            bulletList.Add(this);
        }