Beispiel #1
0
 public Bullet()
 {
     this.Position    = new Vector2(600, 300);
     RotationAngle    = MathHelper.ToRadians(0);
     Speed            = 0;
     ProcedureManager = new BulletBehaviorManager();
     this.Initialize("Bullet");
 }
Beispiel #2
0
 public Bullet(Vector2 position, float speed, float rotation, float rotationSpeed, BulletBehaviorManager procedureManager, Color color)
 {
     this.Initialize("Bullet");
     this.Position    = position;
     Speed            = speed;
     RotationAngle    = rotation;
     RotationSpeed    = rotationSpeed;
     ProcedureManager = procedureManager;
     BulletColor      = color;
 }
        public Bullet CreateBullet(Vector2 position, float speed, float rotation, float rotationSpeed, Color bulletColor, BulletBehaviorManager procedureManager)
        {
            Bullet newBullet = new Bullet(position, speed, rotation, rotationSpeed, procedureManager, bulletColor);

            LevelInstance.bulletList.Add(newBullet);

            return(newBullet);
        }