OpenTTD/src/script/api
Patric Stout 3b1407d240
Feature: allow to do a hostile takeover of an AI company (in singleplayer) (#10914)
With the removal of the share-system, you could no longer make an
AI disappear in a single player game. At least, not without going
into the console.
2023-06-05 19:32:22 +02:00
..
ai Codechange: Make SpriteType, CargoSortType, SourceType and ScriptType enum classes. (#10663) 2023-04-16 20:00:55 +01:00
game Codechange: Make SpriteType, CargoSortType, SourceType and ScriptType enum classes. (#10663) 2023-04-16 20:00:55 +01:00
CMakeLists.txt Add: [Script] GSAsyncMode to set async mode of gamescript commands (#10913) 2023-06-04 11:15:35 +02:00
Doxyfile_AI.in Fix: warnings about obsolete settings/setting values in Doxygen configurations 2023-01-26 16:07:14 +01:00
Doxyfile_GS.in Fix: warnings about obsolete settings/setting values in Doxygen configurations 2023-01-26 16:07:14 +01:00
ai_changelog.hpp Fix: Some Script::IsValidVehicle checks need to be complemented with IsPrimaryVehicle 2023-02-18 09:58:02 +01:00
doxygen_filter.awk Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
doxygen_filter.sh Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
game_changelog.hpp Fix 3effb893: mention GSAsyncMode in changelog (#10924) 2023-06-04 11:10:22 +00:00
script_accounting.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_accounting.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_admin.cpp Codechange: Use {fmt} for script_admin JSON generation 2023-03-06 00:32:12 +01:00
script_admin.hpp Change: include fmt.h C++ headers in stdafx.h 2023-05-08 16:49:23 +02:00
script_airport.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_airport.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_asyncmode.cpp Add: [Script] GSAsyncMode to set async mode of gamescript commands (#10913) 2023-06-04 11:15:35 +02:00
script_asyncmode.hpp Add: [Script] GSAsyncMode to set async mode of gamescript commands (#10913) 2023-06-04 11:15:35 +02:00
script_base.cpp Fix: [Script] ScriptBase::Rand() return value was between -MIN(int32) and MAX(int32) (#10443) 2023-02-10 19:55:59 +01:00
script_base.hpp Fix: [Script] ScriptBase::Rand() return value was between -MIN(int32) and MAX(int32) (#10443) 2023-02-10 19:55:59 +01:00
script_basestation.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_basestation.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_bridge.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_bridge.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_bridgelist.cpp Codechange: Use SQInteger for generic numbers in script_bridgelist 2023-03-06 00:32:12 +01:00
script_bridgelist.hpp Codechange: Use SQInteger for generic numbers in script_bridgelist 2023-03-06 00:32:12 +01:00
script_cargo.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_cargo.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_cargolist.cpp Change: Reorganise industry accept/produce arrays. (#10853) 2023-05-25 21:25:46 +01:00
script_cargolist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_cargomonitor.cpp Codechange: Use SQInteger for generic numbers in script_cargomonitor 2023-03-06 00:32:12 +01:00
script_cargomonitor.hpp Codechange: Use SQInteger for generic numbers in script_cargomonitor 2023-03-06 00:32:12 +01:00
script_client.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_client.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_clientlist.cpp Codechange: Replace network related FOR_ALL with range-based for loops 2019-12-21 20:13:03 +01:00
script_clientlist.hpp Fix: missing/duplicate documentation tags for scripts 2023-01-26 16:07:14 +01:00
script_company.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_company.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_companymode.cpp Fix: crashes to desktop from game scripts when companies disappear 2023-03-08 22:33:47 +01:00
script_companymode.hpp Fix: crashes to desktop from game scripts when companies disappear 2023-03-08 22:33:47 +01:00
script_controller.cpp Codechange: replace 'const char *' script API parameters with std::string 2023-05-14 22:54:10 +02:00
script_controller.hpp Codechange: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +01:00
script_date.cpp Codechange: Move calendar date functions inside TimerGameCalendar (#10753) 2023-05-04 13:14:12 +00:00
script_date.hpp Codechange: Use SQInteger for generic numbers in script_date 2023-03-06 00:32:12 +01:00
script_depotlist.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_depotlist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_engine.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_engine.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_enginelist.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_enginelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_error.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_error.hpp Codechange: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +01:00
script_event.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_event.hpp Fix: missing/duplicate documentation tags for scripts 2023-01-26 16:07:14 +01:00
script_event_types.cpp Feature: allow to do a hostile takeover of an AI company (in singleplayer) (#10914) 2023-06-05 19:32:22 +02:00
script_event_types.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_execmode.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_execmode.hpp Change: Use gender-neutral pronouns in console command messages (and comments) (#9203) 2021-05-08 11:02:30 +01:00
script_game.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_game.hpp Fix: missing/duplicate documentation tags for scripts 2023-01-26 16:07:14 +01:00
script_gamesettings.cpp Codechange: replace 'const char *' script API parameters with std::string 2023-05-14 22:54:10 +02:00
script_gamesettings.hpp Codechange: replace 'const char *' script API parameters with std::string 2023-05-14 22:54:10 +02:00
script_goal.cpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_goal.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_group.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_group.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_grouplist.cpp Change: Allow GS access to ScriptGroup functions 2023-04-17 17:59:16 +02:00
script_grouplist.hpp Change: Allow GS access to ScriptGroup functions 2023-04-17 17:59:16 +02:00
script_includes.hpp.in Change: rewrote squirrel_export in CMake 2020-07-16 00:53:26 +02:00
script_industry.cpp Codechange: Remove duplicated includes. (#10888) 2023-05-29 14:29:00 +01:00
script_industry.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_industrylist.cpp Codechange: Add IsCargoAccepted/Produced() helpers. 2023-05-24 17:34:11 +01:00
script_industrylist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_industrytype.cpp Codechange: Use IsValidCargoID/IsValidCargoType. 2023-05-22 20:43:40 +01:00
script_industrytype.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_industrytypelist.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_industrytypelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_info_docs.hpp Add: [Script] Labels for negative values of a setting 2023-02-21 00:28:21 +01:00
script_infrastructure.cpp Codechange: Use SQInteger for generic numbers in script_infrastructure 2023-03-06 00:32:12 +01:00
script_infrastructure.hpp Codechange: Use SQInteger for generic numbers in script_infrastructure 2023-03-06 00:32:12 +01:00
script_league.cpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_league.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_list.cpp Codechange: use default dtor instead of empty (#10826) 2023-05-14 23:31:03 +02:00
script_list.hpp Codechange: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +01:00
script_log.cpp Codechange: use std::string for script log calls 2023-05-14 22:54:10 +02:00
script_log.hpp Codechange: use std::string for script log calls 2023-05-14 22:54:10 +02:00
script_log_types.hpp Codechange: Move includes for common STL headers to stdafx. 2023-05-17 10:14:41 +01:00
script_map.cpp Codechange: Use SQInteger for generic numbers in script_map 2023-03-06 00:32:12 +01:00
script_map.hpp Codechange: Use SQInteger for generic numbers in script_map 2023-03-06 00:32:12 +01:00
script_marine.cpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_marine.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_newgrf.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_newgrf.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_news.cpp Add: deity mode enforcement checks to functions with command or company access 2023-03-08 22:33:47 +01:00
script_news.hpp Add: deity mode enforcement checks to functions with command or company access 2023-03-08 22:33:47 +01:00
script_object.cpp Add: [Script] GSAsyncMode to set async mode of gamescript commands (#10913) 2023-06-04 11:15:35 +02:00
script_object.hpp Add: [Script] GSAsyncMode to set async mode of gamescript commands (#10913) 2023-06-04 11:15:35 +02:00
script_objecttype.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_objecttype.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_objecttypelist.cpp Change: Expose ObjectSpec vector to simplify iteration. 2023-04-02 22:42:38 +01:00
script_objecttypelist.hpp Add: allow gamescripts to build neutral objects (#9568) 2021-09-25 13:39:40 +02:00
script_order.cpp Add: company mode enforcement checks to functions with command or company access 2023-03-08 22:33:47 +01:00
script_order.hpp Change: Allow GS access to more ScriptOrder functions 2023-04-17 17:59:16 +02:00
script_priorityqueue.cpp Codechange: Use SQInteger for generic numbers in script_priorityqueue 2023-03-06 00:32:12 +01:00
script_priorityqueue.hpp Change: include fmt.h C++ headers in stdafx.h 2023-05-08 16:49:23 +02:00
script_rail.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_rail.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_railtypelist.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_railtypelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_road.cpp Cleanup: the need for SQAutoFreePointers has gone 2023-05-14 22:54:10 +02:00
script_road.hpp Cleanup: the need for SQAutoFreePointers has gone 2023-05-14 22:54:10 +02:00
script_roadtypelist.cpp Fix: Don't list unavailable road types for game scripts. 2023-05-12 21:03:13 +02:00
script_roadtypelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_sign.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_sign.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_signlist.cpp Codechange: Replace FOR_ALL_SIGNS with range-based for loops 2019-12-21 20:13:03 +01:00
script_signlist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_station.cpp Add: company mode enforcement checks to functions with command or company access 2023-03-08 22:33:47 +01:00
script_station.hpp Add: company mode enforcement checks to functions with command or company access 2023-03-08 22:33:47 +01:00
script_stationlist.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_stationlist.hpp Change: Use gender-neutral pronouns in console command messages (and comments) (#9203) 2021-05-08 11:02:30 +01:00
script_story_page.cpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_story_page.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_storypageelementlist.cpp Codechange: Replace story related FOR_ALL with range-based for loops 2019-12-21 20:13:03 +01:00
script_storypageelementlist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_storypagelist.cpp Codechange: Replace story related FOR_ALL with range-based for loops 2019-12-21 20:13:03 +01:00
script_storypagelist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_subsidy.cpp Add: deity mode enforcement checks to functions with command or company access 2023-03-08 22:33:47 +01:00
script_subsidy.hpp Codechange: Make SpriteType, CargoSortType, SourceType and ScriptType enum classes. (#10663) 2023-04-16 20:00:55 +01:00
script_subsidylist.cpp Codechange: Replace FOR_ALL_SUBSIDIES with range-based for loops 2019-12-21 20:13:03 +01:00
script_subsidylist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_testmode.cpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_testmode.hpp Change: Use gender-neutral pronouns in console command messages (and comments) (#9203) 2021-05-08 11:02:30 +01:00
script_text.cpp Codechange: migrate from C-style GetString to C++-style GetString 2023-05-21 21:17:12 +02:00
script_text.hpp Codechange: replace 'const char *' script API parameters with std::string 2023-05-14 22:54:10 +02:00
script_tile.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_tile.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_tilelist.cpp Change: Reorganise industry accept/produce arrays. (#10853) 2023-05-25 21:25:46 +01:00
script_tilelist.hpp Doc: Fix spelling error in ScriptTileList::RemoveRectangle (#10937) 2023-06-04 17:45:18 +00:00
script_town.cpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_town.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_townlist.cpp Codechange: Replace FOR_ALL_TOWNS with range-based for loops 2019-12-21 20:13:03 +01:00
script_townlist.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_tunnel.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_tunnel.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_types.hpp Codechange: Make TileIndex a "strong" typedef to give it a distinct type. 2021-12-16 22:28:32 +01:00
script_vehicle.cpp Codechange: Use IsValidCargoID/IsValidCargoType. 2023-05-22 20:43:40 +01:00
script_vehicle.hpp Codechange: use std::string as script API return type 2023-05-14 22:54:10 +02:00
script_vehiclelist.cpp Change: Allow GS access to ScriptGroup functions 2023-04-17 17:59:16 +02:00
script_vehiclelist.hpp Change: Allow GS access to ScriptGroup functions 2023-04-17 17:59:16 +02:00
script_viewport.cpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_viewport.hpp Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers 2023-03-06 22:34:09 +01:00
script_waypoint.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_waypoint.hpp Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
script_waypointlist.cpp Add: precondition checks to functions that work with both valid company and deity 2023-03-08 22:33:47 +01:00
script_waypointlist.hpp Change: Use gender-neutral pronouns 2021-05-15 10:16:48 +02:00
script_window.cpp Codechange: Use SQInteger for generic numbers in script_window 2023-03-06 00:32:12 +01:00
script_window.hpp.in Codechange: Use SQInteger for generic numbers in script_window 2023-03-06 00:32:12 +01:00
squirrel_export.hpp.sq.in Change: rewrote squirrel_export in CMake 2020-07-16 00:53:26 +02:00