-
Notifications
You must be signed in to change notification settings - Fork 0
/
Prisoner.h
69 lines (51 loc) · 1.63 KB
/
Prisoner.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <iostream>
#include <vector>
#include "Knowledge.h"
using namespace std;
//Klasa Wieznia
class Prisoner{
private:
// Dane
//string _name;
float _determination; // determinacja do wykonywania zadan
float _force; // stopien sily zeby przeplynac ocean
static long long int lengthTunnel; // dlugosc wykopanego tunelu
//Zmienne potrzebne do ucieszki
bool _isKey; // zmienna okreslająca czy wiezien zdobyl klucz do ucieczki
bool _isTunnel; // zmienna okresalajaca czy wiezien wykopal tunel do ucieczki
bool _isFree; // zmienna pokazujaca czy udalo sie uciec
bool _isAlive ;
public:
// Metody klasy /////////////////////UWGAAAAA
//static vector <Prisoner> createPrisoner(int n); // stworzenie Wieznia
// Metody obiektu
Prisoner ();
// Konstruktor
void digTunnel();
// Funkcja majaca zadanie wykopac tunnel
void stealKey();
// Funkcja majaca na zadnaiu ukrasc klucz
int workout(int day );
// Funkcja zwiekszajaca sile fizyczna
bool willDie();
// Funkcja odpowiadajaca za jego zycie
void die();
// Funkcja odbierajaca zycie
//static
long long int currentlength() { return lengthTunnel; }
// Metody opisujce
void showAdvance ( );
// Funkcja wyswietlajaca postepy wykonania akcji przez wieznia i reakcji wiezenia
bool isKey( );
// Funkacja zwracajaca informacje o sukcesie spelnienia warunku
bool isTunnel( );
// Funkacja zwracajaca informacje o sukcesie spelnienia warunku
bool checkStatus() ;
// Sprawdzenie statusu ucieczki
bool isAlive( );
// Funkacja sprawdzajaca czy zyje
};