-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.h
33 lines (28 loc) · 850 Bytes
/
Player.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
/*
Project Name: Prime Number Football Game
Module Description: Header file containing class definition of the player prime
Last Updated: 15/04/2022 - Addition of internal commentary
Author: Aaron Shek & Cameron Blair
*/
#ifndef Player_H
#define Player_H
#include <time.h> // time
#include <string> // string libs
class Player {
private:
int primeNumber;
int gkprime;
float remainder;
public:
Player() { primeNumber = 0; gkprime = 0; remainder = 0.0; srand(time(0)); }
// Getters
int getprime() { return this->primeNumber; }
float getRemainder() { return this->remainder; }
int getGoalkeeper() { return this->gkprime; }
// Setters
void setPrime(int prime);
void setGoalkeeper();
void setremainder(float prime, int dieno);
virtual ~Player() {}
};
#endif