@@ -8,12 +8,13 @@
/** @file script_date.hpp Everything to query and manipulate date related information. */
#ifndef SCRIPT_DATE_HPP
#define SCRIPT_DATE_HPP
#include "script_object.hpp"
#include "timer/timer_game_calendar.h"
#include "../../date_type.h"
/**
* Class that handles all date related (calculation) functions.
* @api ai game
*
@@ -28,13 +29,13 @@ class ScriptDate : public ScriptObject {
public:
* Date data type is an integer value. Use ScriptDate::GetDate to
* compose valid date values for a known year, month and day.
*/
enum Date {
DATE_INVALID = (int32_t)::INVALID_DATE, ///< A value representing an invalid date.
DATE_INVALID = (int32_t)::CalendarTime::INVALID_DATE, ///< A value representing an invalid date.
};
* Validates if a date value represent a valid date.
* @param date The date to validate.
* @return True if the date is valid, otherwise false