summaryrefslogtreecommitdiff
path: root/Player.cpp
blob: ba507a647acb76a2704f103493371a1aea8e9965 (plain) (blame)
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
/* **************************************
 *  Includes                            *
 * **************************************/

#include "Player.h"
#include <string.h>

/* **************************************
 *  Defines                             *
 * **************************************/

/* **************************************
 *  Structs and enums                   *
 * **************************************/

/* **************************************
 *  Local variables                     *
 * **************************************/

/* **************************************
 *  Functions definition                *
 * **************************************/

/*****************************************************************//**
 *
 * \brief   Constructor for Player class.
 *
 *********************************************************************/
Player::Player(const char* const strPlayerName)
{
    if (strPlayerName != NULL)
    {
        strncpy(_name, strPlayerName, MAX_NAME_LENGTH);
    }
    else
    {
        /* Undefined player name. */
    }
}