summaryrefslogtreecommitdiff
path: root/src/script/api/script_date.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-11-29 23:15:35 +0000
committertruebrain <truebrain@openttd.org>2011-11-29 23:15:35 +0000
commit98103121d4f2ed1f1581919b7b1f343ccd410c12 (patch)
tree1e760dd6517a6b0f9fb669ec277139a8e3f9a4a3 /src/script/api/script_date.cpp
parentafdb67a3534f85b4efbd3327ece8137211042d7b (diff)
downloadopenttd-98103121d4f2ed1f1581919b7b1f343ccd410c12.tar.xz
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
Diffstat (limited to 'src/script/api/script_date.cpp')
-rw-r--r--src/script/api/script_date.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/script/api/script_date.cpp b/src/script/api/script_date.cpp
index af72a69d1..3f3d16bcc 100644
--- a/src/script/api/script_date.cpp
+++ b/src/script/api/script_date.cpp
@@ -7,18 +7,18 @@
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
-/** @file script_date.cpp Implementation of AIDate. */
+/** @file script_date.cpp Implementation of ScriptDate. */
#include "../../stdafx.h"
#include "script_date.hpp"
#include "../../date_func.h"
-/* static */ int32 AIDate::GetCurrentDate()
+/* static */ int32 ScriptDate::GetCurrentDate()
{
return ::_date;
}
-/* static */ int32 AIDate::GetYear(int32 date)
+/* static */ int32 ScriptDate::GetYear(int32 date)
{
if (date < 0) return -1;
@@ -27,7 +27,7 @@
return ymd.year;
}
-/* static */ int32 AIDate::GetMonth(int32 date)
+/* static */ int32 ScriptDate::GetMonth(int32 date)
{
if (date < 0) return -1;
@@ -36,7 +36,7 @@
return ymd.month + 1;
}
-/* static */ int32 AIDate::GetDayOfMonth(int32 date)
+/* static */ int32 ScriptDate::GetDayOfMonth(int32 date)
{
if (date < 0) return -1;
@@ -45,7 +45,7 @@
return ymd.day;
}
-/* static */ int32 AIDate::GetDate(int32 year, int32 month, int32 day_of_month)
+/* static */ int32 ScriptDate::GetDate(int32 year, int32 month, int32 day_of_month)
{
if (month < 1 || month > 12) return -1;
if (day_of_month < 1 || day_of_month > 31) return -1;