public Bullet() { this.Position = new Vector2(600, 300); RotationAngle = MathHelper.ToRadians(0); Speed = 0; ProcedureManager = new BulletBehaviorManager(); this.Initialize("Bullet"); }
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); }