public void PlayerShootsComputer(int npc) { OnePointToNpc point = new OnePointToNpc(); PlayerOnePoint win = new PlayerOnePoint(); var pShoot = PlayerShoot(); if (pShoot == npc) { ShootVsShoot load = new ShootVsShoot(); load.Show(); gs.NpcLooseAmmo(); gs.PlayerLooseAmmo(); } else { if (pShoot != npc) { if (npc == 1) { ShootVsBlock load = new ShootVsBlock(); load.Show(); gs.PlayerLooseAmmo(); } else if (npc == 3) { ShootVsLoad load = new ShootVsLoad(); load.Show(); win.Show(); PlayerWinPoint(); gs.SetAmmoStartGame(); } else if (npc == 4) { ShotgunVSShotgun load = new ShotgunVSShotgun(); load.Show(); point.Show(); NpcWinPoint(); gs.SetAmmoStartGame(); } } } }
public void PlayerShotgunsComputer(int npc) { PlayerOnePoint point = new PlayerOnePoint(); if (PlayerShotgun() == npc) { ShotgunVSShotgun load = new ShotgunVSShotgun(); load.Show(); gs.PlayerLooseAmmo(); gs.NpcLooseAmmo(); } else { if (npc == 1) { ShotgunVsBlock load = new ShotgunVsBlock(); load.Show(); point.Show(); PlayerWinPoint(); gs.SetAmmoStartGame(); } else if (npc == 2) { ShotgunVsShoot load = new ShotgunVsShoot(); load.Show(); point.Show(); PlayerWinPoint(); gs.SetAmmoStartGame(); } else if (npc == 3) { ShotgunVsLoad load = new ShotgunVsLoad(); load.Show(); point.Show(); PlayerWinPoint(); gs.SetAmmoStartGame(); } } }