|
Player12
An open source football management simulator
|
Singleton class that manages the current date in the game. More...
#include <gamedate.h>
Public Member Functions | |
| GameDateValue | getCurrent () const |
| Gets the current date. | |
| void | setCurrent (GameDateValue d) |
| Sets the current date. | |
| void | nextDay () |
| Advances the current date by one day. | |
| void | nextWeek () |
| Advances the current date by one week. | |
| void | nextMonth () |
| Advances the current date by one month. | |
Static Public Member Functions | |
| static GameDate & | instance () |
| Gets the singleton instance. | |
Private Member Functions | |
| GameDate () | |
| GameDate (const GameDate &)=delete | |
| GameDate & | operator= (const GameDate &)=delete |
Private Attributes | |
| GameDateValue | current |
Singleton class that manages the current date in the game.
|
inlineprivate |
|
privatedelete |
|
inline |
Gets the current date.
|
inlinestatic |
Gets the singleton instance.
|
inline |
Advances the current date by one day.
|
inline |
Advances the current date by one month.
|
inline |
Advances the current date by one week.
|
inline |
Sets the current date.
| d | The date to set. |
|
private |