Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <iostream>
- #include <string>
- #include <windows.h>
- using namespace std;
- string strImie;
- int nKlasa;
- int nMenu;
- int nWiek;
- void Gra()
- {
- cout << "123";
- }
- //KLASY
- void rycerz()
- {
- const int SILA = 10;
- const int ZRECZNOSC = 4;
- const int MAGIA = 0;
- const int MAGIAZNISZCZENIA = 0;
- }
- void lucznik()
- {
- const int SILA = 4;
- const int ZRECZNOSC = 10;
- const int MAGIA = 0;
- const int MAGIAZNISZCZENIA = 0;
- }
- void mag()
- {
- const int SILA = 0;
- const int ZRECZNOSC = 0;
- const int MAGIA = 10;
- const int MAGIAZNISZCZENIA = 4;
- }
- void magzniszczenia()
- {
- const int SILA = 0;
- const int ZRECZNOSC = 0;
- const int MAGIA = 4;
- const int MAGIAZNISZCZENIA = 10;
- }
- void profil()
- {
- cout << endl;
- cout << "Czas opowiedziec cos o sobie:" << endl;
- cout << "Podaj swoje imie: "; cin >> strImie;
- cout << "Podaj swoj wiek: "; cin >> nWiek;
- cout << endl;
- Sleep(1000);
- cout << "Nadszedl czas abys wybral klase postaci. Oto wszystkie opcje + statystyki:" << endl;
- cout << endl;
- Sleep(3000);
- cout << "Rycerz:" << endl;
- cout << "Sila: 10" << endl;
- cout << "Zrecznosc: 4" << endl;
- cout << "Magia: 0" << endl;
- cout << "Magia zniszczenia: 0" << endl;
- cout << endl;
- Sleep(2000);
- cout << "Lucznik:" << endl;
- cout << "Sila: 4" << endl;
- cout << "Zrecznosc: 10" << endl;
- cout << "Magia: 0" << endl;
- cout << "Magia zniszczenia: 0" << endl;
- cout << endl;
- Sleep(2000);
- cout << "Mag:" << endl;
- cout << "Sila: 0" << endl;
- cout << "Zrecznosc: 0" << endl;
- cout << "Magia: 10" << endl;
- cout << "Magia zniszczenia: 4" << endl;
- cout << endl;
- Sleep(2000);
- cout << "Mag zniszczenia:" << endl;
- cout << "Sila: 0" << endl;
- cout << "Zrecznosc: 0" << endl;
- cout << "Magia: 4" << endl;
- cout << "Magia zniszczenia: 10" << endl;
- cout << endl;
- // Wybór klasy
- cout << "Twoj wybor(1.Rycerz, 2.Lucznik, 3.Mag, 4.Mag zniszczenia): "; cin >> nKlasa;
- switch (nKlasa)
- {
- case 1:
- rycerz(); break;
- case 2:
- lucznik();break;
- case 3:
- mag(); break;
- case 4:
- magzniszczenia();break;
- }
- Gra();
- getch();
- }
- void main()
- {
- Sleep(300);
- cout << "*****************************************************" << endl;
- Sleep(300);
- cout << "ForgottenWorld, wersja V1.0 //" << endl;
- Sleep(300);
- cout << "*****************************************************" << endl;
- Sleep(300);
- cout << "Witaj w zapomnianym swiecie. Twoja historia rozpoczyna" << endl;
- Sleep(300);
- cout << "sie po katastrofie statku na ktorym plynales." << endl;
- Sleep(300);
- cout << "Budzisz sie na plazy" << endl;
- Sleep(300);
- cout << endl;
- // Menu
- cout << "1. Rozpocznij gre" << endl;
- cout << "2. Wyjscie" << endl;
- cout << "Twoj wybor (1 lub 2): "; cin >> nMenu;
- switch (nMenu)
- {
- case 1:
- profil();
- case 2:
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement