-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIStat.hpp
More file actions
36 lines (32 loc) · 726 Bytes
/
IStat.hpp
File metadata and controls
36 lines (32 loc) · 726 Bytes
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
#ifndef ISTAT_HPP_
#define ISTAT_HPP_
#include <string>
namespace arcade
{
///
/// \class IStat
/// \brief Interface representing a player stat
///
class IStat
{
public:
///
/// \fn virtual ~IStat()
/// \brief Virtual destructor of the interface
///
virtual ~IStat(){};
///
/// \fn virtual std::string const &getPseudo() const = 0
/// \brief Get the pseudo of the player
///
virtual std::string const &getPseudo() const = 0;
// We need to choose a time format, size_t, std::chrono, etc..
// virtual size_t getTime() const = 0;
///
/// \fn virtual long getScore() const = 0
/// \brief Get the player score
///
virtual long getScore() const = 0;
};
}
#endif // !ISTAT_HPP_