Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Multiplayer Lobby Simulator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Allen B. Doelue
Multiplayer Lobby Simulator
Commits
9df1e2b2
Commit
9df1e2b2
authored
Apr 28, 2020
by
Allen B. Doelue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Player.h file
parent
714d5006
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
Player.h
Player.h
+22
-0
No files found.
Player.h
0 → 100644
View file @
9df1e2b2
//Player.h
#ifndef PLAYER_H
#define PLAYER_H
#include <iostream>
class
Player
{
public
:
Player
(
const
std
::
string
&
username
=
"CPU"
,
unsigned
rank
=
1
);
void
displayName
();
// print name
unsigned
getRank
();
// returns rank
private
:
//player info
std
::
string
_username
;
unsigned
_rank
;
};
#endif //PLAYER_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment