-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.h
68 lines (57 loc) · 1.77 KB
/
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
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
#pragma once
#include "headers.h"
// contains the player struct- name e.t.c
struct player
{
std::string first_names[60] = {
"kevin","kelly","stephen","steven","mike",
"michael","joseph","murray","jesse","jessie",
"ronald","donald","joe","dean","kyle",
"chris","christian","scott","ravel","marcus",
"ethan","wade","riley","ivan","liam",
"glen","aidan","julian","harold","peter",
"conner","hunter","pete","solomon","noah",
"paul", "carlos","david","shane","rick",
"charles","charlie","thomas","tommy","neil",
"ted","clark","stuart","keith","marshall",
"ernest","albert","fred","samuel","benjamin",
"ben","luke","luka","craig","jimmy"
};
std::string second_names[60] = {
"howson","devine","divine","conway","penrose",
"peterson","morrison","gray","taylor","rice",
"kelly","clarkson","roger","snow","white",
"black","mitchell","merson","paulson","mannix",
"walker","morgan","miller","perry","clark",
"wheeler","holland","richards","stanley","miles",
"lucas","miles","terry","fletcher","norris",
"parks","daniel","newton","potter","francis",
"moody","lindsey","cooper","gross","sherman",
"brown","rodriguez","rodrigues","lee","hall",
"simon","young","campbell","lopez","gordon",
"burns","long","gibson","hamilton","ford"
};
std::string first_name;
std::string last_name;
player()
{
}
player(std::string first_name, std::string last_name)
{
this->first_name = first_name;
this->last_name = last_name;
}
std::string display_name()
{
return first_name + " " + last_name;
}
static player generate_player()
{
player p;
srand(rand() * time(0) * rand() * time(0));
int f_n_index = rand() % 60;
srand(rand() * time(0) * rand() * time(0));
int l_n_index = rand() % 60;
return player(p.first_names[f_n_index], p.second_names[l_n_index]);
}
};