-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlayer.h
29 lines (22 loc) · 827 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
#ifndef PLAYER_H
#define PLAYER_H
/***
This is Player Class, it handles all the activities corresponding to Player
***/
#include <cstring> // for using string functions
class Player
{
public:
Player(); // ctor
virtual ~Player(); // dtor
unsigned long int getPlayerScore(); // getter for Player Score
void setPlayerScore(const unsigned long int&); // setter for Player Score
void addToPlayerScore(const unsigned long int& ); // add to Score
char* getPlayerName(); // getter for Player Name
void setPlayerName(const char*); // setter for Player Name
protected:
private:
char playerName[30]; // character array Player Name, max size of name allowed is 29
unsigned long int playerScore; // player score
};
#endif // PLAYER_H