Advertisement
Guest User

Untitled

a guest
Mar 12th, 2013
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <conio.h>
  2. #include <iostream>
  3. #include <string>
  4. #include <windows.h>
  5. using namespace std;
  6.  
  7. string strImie;
  8. int nKlasa;
  9. int nMenu;
  10. int nWiek;
  11.  
  12. void Gra()
  13. {
  14.     cout << "123";
  15. }
  16.  
  17. //KLASY
  18.  
  19. void rycerz()
  20. {
  21.     const int SILA = 10;
  22.     const int ZRECZNOSC = 4;
  23.     const int MAGIA = 0;
  24.     const int MAGIAZNISZCZENIA = 0;
  25. }
  26.  
  27. void lucznik()
  28. {
  29.     const int SILA = 4;
  30.     const int ZRECZNOSC = 10;
  31.     const int MAGIA = 0;
  32.     const int MAGIAZNISZCZENIA = 0;
  33. }
  34.  
  35. void mag()
  36. {
  37.     const int SILA = 0;
  38.     const int ZRECZNOSC = 0;
  39.     const int MAGIA = 10;
  40.     const int MAGIAZNISZCZENIA = 4;
  41. }
  42.  
  43. void magzniszczenia()
  44. {
  45.     const int SILA = 0;
  46.     const int ZRECZNOSC = 0;
  47.     const int MAGIA = 4;
  48.     const int MAGIAZNISZCZENIA = 10;
  49. }
  50.  
  51.  
  52.  
  53. void profil()
  54. {
  55.     cout << endl;
  56.     cout << "Czas opowiedziec cos o sobie:" << endl;
  57.     cout << "Podaj swoje imie: "; cin >> strImie;
  58.     cout << "Podaj swoj wiek: "; cin >> nWiek;
  59.     cout << endl;
  60.     Sleep(1000);
  61.     cout << "Nadszedl czas abys wybral klase postaci. Oto wszystkie opcje + statystyki:" << endl;
  62.     cout << endl;
  63.  
  64.     Sleep(3000);
  65.     cout << "Rycerz:" << endl;
  66.     cout << "Sila: 10" << endl;
  67.     cout << "Zrecznosc: 4" << endl;
  68.     cout << "Magia: 0" << endl;
  69.     cout << "Magia zniszczenia: 0" << endl;
  70.     cout << endl;
  71.  
  72.     Sleep(2000);
  73.     cout << "Lucznik:" << endl;
  74.     cout << "Sila: 4" << endl;
  75.     cout << "Zrecznosc: 10" << endl;
  76.     cout << "Magia: 0" << endl;
  77.     cout << "Magia zniszczenia: 0" << endl;
  78.     cout << endl;
  79.  
  80.     Sleep(2000);
  81.     cout << "Mag:" << endl;
  82.     cout << "Sila: 0" << endl;
  83.     cout << "Zrecznosc: 0" << endl;
  84.     cout << "Magia: 10" << endl;
  85.     cout << "Magia zniszczenia: 4" << endl;
  86.     cout << endl;
  87.  
  88.     Sleep(2000);
  89.     cout << "Mag zniszczenia:" << endl;
  90.     cout << "Sila: 0" << endl;
  91.     cout << "Zrecznosc: 0" << endl;
  92.     cout << "Magia: 4" << endl;
  93.     cout << "Magia zniszczenia: 10" << endl;
  94.     cout << endl;
  95.  
  96.     // Wybór klasy
  97.  
  98.     cout << "Twoj wybor(1.Rycerz, 2.Lucznik, 3.Mag, 4.Mag zniszczenia): "; cin >> nKlasa;
  99.  
  100.      switch (nKlasa)
  101.         {
  102.         case 1:
  103.                 rycerz(); break;
  104.         case 2:
  105.                 lucznik();break;
  106.         case 3:
  107.                 mag(); break;
  108.         case 4:
  109.                 magzniszczenia();break;
  110.         }
  111.        Gra();
  112.  
  113.     getch();
  114. }
  115.  
  116. void main()
  117. {
  118.     Sleep(300);
  119.     cout << "*****************************************************" << endl;
  120.     Sleep(300);
  121.     cout << "ForgottenWorld, wersja V1.0   //" << endl;
  122.     Sleep(300);
  123.     cout << "*****************************************************" << endl;
  124.     Sleep(300);
  125.     cout << "Witaj w zapomnianym swiecie. Twoja historia rozpoczyna" << endl;
  126.     Sleep(300);
  127.     cout << "sie po katastrofie statku na ktorym plynales." << endl;
  128.     Sleep(300);
  129.     cout << "Budzisz sie na plazy" << endl;
  130.     Sleep(300);
  131.     cout << endl;
  132.  
  133.     // Menu
  134.  
  135.     cout << "1. Rozpocznij gre" << endl;
  136.     cout << "2. Wyjscie" << endl;
  137.     cout << "Twoj wybor (1 lub 2): "; cin >> nMenu;
  138.  
  139.  
  140.     switch (nMenu)
  141.     {
  142.     case 1:
  143.         profil();
  144.     case 2:
  145.         break;
  146.     }
  147.  
  148.  
  149. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement