Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include <iostream>
#include <string>
#include "Character.h"
#include "weapon.h"
#include <windows.h>
#include "functions.h"
using namespace std;
void startScreen()
{
HWND hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_MAXIMIZE);
char start;
system("cls");
system("color c");
cout << "****************************************************************************************************************************************************************************\n";
cout << "*************************************** The Bizzare Adventures of Zorro ************************************\n";
cout << "****************************************************************************************************************************************************************************\n";
Sleep(2200);
system("cls");
}
void gameOver()
{
system("color c");
cout << "****************************************************************************************************************************************************************************\n";
cout << "*************************************** GAME OVER ************************************\n";
cout << "****************************************************************************************************************************************************************************\n";
Sleep(1520);
system("cls");
}
character chooseClass()
{
int classChoice;
cout << "What is your character?\n\n" << "[1] knight - balanced/higher damage resist,holy magic\n\n[2] Ninja - dexterity heavy,stealth\n\n[3] Savage - strength heavy,high crits\n\n";
cin >> classChoice;
system("cls");
switch(classChoice)
{
case 1:
cout << "A knight! As a knight you'll be able to wield war axes, battle axes, and" <<
"... \nwell. Any type of axe you can think up. You'll also be able to wear some of the heavier armor " <<
"types found here on Ishgar.";
return character ("knight", 50, 12, 12, .65, 50, 1);
break;
case 2:
cout << "So you're an Ninja, eh? As an Ninja, you'll have less strength than the" <<
" \nknight or Savage, but what you don't have in might, you make up for in \npercision. You will be able " <<
"to perform certain feats that your counterparts \ncould only dream of doing.";
return character("Ninja", 40, 12, 16, .91, 55, 1);
break;
case 3:
cout << "Great fury! I've not come across many Savages, but I've never seen such \nfocused rage in any other." <<
" As a Savage, you may not be able to sneak through the window of Prince Kanoha and steal his Gohl Gem, but " <<
"you will be able to \nknock down the front door before being dragged off to Ishgar Dungeon.";
return character("Savage", 45, 15, 11, .83, 50, 1);
break;
default:
cout << "Invalid class selection.\n\n";
cout << "Please press enter to continue\n";
cin.ignore();
cin.get();
system("cls");
return chooseClass();
}
}
weapon chooseWeapon1()
{
cout << "Please choose from the following instruments of war.\n\n[1]Battle Axe\n\n[2]Dual Bastard Swords\n\n[3]Dwarven Dagger\n\n" <<
"[4]Short Sword and Dagger\n\n[5]Claymore\n\n[6]Dual, Double Bladed Hand Axes\n";
int weaponChoice1;
cin >> weaponChoice1;
system("cls");
switch(weaponChoice1)
{
case 1:
cout << "Battle axe, a fine choice.";
return weapon("battle axe", 2, 0);
break;
case 2:
cout << "Dual bastard swords, a fine choice.";
return weapon("dual bastard swords", 1, 1);
break;
case 3:
cout << "Dwarven dagger, a fine choice.";
return weapon("dwarven dagger", 2, 0);
break;
case 4:
cout << "Short sword and dagger, fine choices.";
return weapon("short sword and dagger", 1, 1);
break;
case 5:
cout << "Claymore, a fine choice.";
return weapon("claymore", 2, 0);
break;
case 6:
cout << "Dual, double bladed hand axes, a fine choice.";
return weapon("dual, double bladed hand axes", 1, 1);
break;
case 911:
cout << "Seriously here, George... That's more than enough!";
return weapon("WMD", 3, 0);
default:
cout << "Invalid class selection.\n\n";
cout << "Please press enter to continue\n";
cin.get();
system("cls");
return chooseWeapon1();
}
}