public Bullet(Game i_InvadersGame, Vector2 i_Delta, Enums.eShooter i_BulletShooter, ICapableShooter i_Shooter) : base(k_AssetName, i_InvadersGame, i_Delta) { r_BulletShooter = i_BulletShooter; r_Random = new Random(); m_Shooter = i_Shooter; m_TintColor = i_Shooter.BulletTintColor; m_Velocity = new Vector2(0, i_Shooter.BulletDirection * k_BulletVelocity); }
public ShootingMachine(Game i_InvadersGame, int i_MaxBulletsOnScreen, Enums.eShooter i_BulletShooter, string?i_GunShootAsset) : base(i_InvadersGame) { r_MaxBulletsOnScreen = i_MaxBulletsOnScreen; r_BulletShooter = i_BulletShooter; r_BulletsReadyToShoot = new Stack <Bullet>(); r_BulletsOnScreen = new List <Bullet>(); m_GunShootAsset = i_GunShootAsset; }