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 PlayerLoadsComputer(int npc) { OnePointToNpc point = new OnePointToNpc(); if (PlayerLoad() == npc) { LoadVsLoad load = new LoadVsLoad(); load.Show(); gs.PlayerGetAmmo(); gs.NpcGetAmmo(); } else { if (npc == 1) { LoadVsBlock load = new LoadVsBlock(); load.Show(); gs.PlayerGetAmmo(); } else if (npc == 2) { LoadVsShoot load = new LoadVsShoot(); load.Show(); point.Show(); NpcWinPoint(); gs.SetAmmoStartGame(); } else if (npc == 4) { LoadVsShotgun load = new LoadVsShotgun(); load.Show(); point.Show(); NpcWinPoint(); gs.SetAmmoStartGame(); } } }
public void PlayerBlocksComputer(int npc) { OnePointToNpc point = new OnePointToNpc(); var pBlock = PlayerBlock(); if (pBlock == npc) { BlockVsBlock load = new BlockVsBlock(); load.Show(); } else { if (npc == 3) { BlockVsLoad load = new BlockVsLoad(); load.Show(); gs.NpcGetAmmo(); } else if (npc == 2) { BlockVsShoot load = new BlockVsShoot(); load.Show(); gs.NpcLooseAmmo(); } else if (npc == 4) { BlockVsShotgun load = new BlockVsShotgun(); load.Show(); point.Show(); NpcWinPoint(); gs.SetAmmoStartGame(); } } }