summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.h
AgeCommit message (Collapse)Author
2020-01-26Feature: NewGRF callback profiling (#7868)Niels Martin Hansen
Adds a console command newgrf_profile to collect some profiling data about NewGRF action 2 callbacks and produce a CSV file.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-10-19Codechange: Use std::vector for industry tile layoutsNiels Martin Hansen
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-24Codechange: Use override specifer for overriding member declarationsHenry Wilson
This is a C++11 feature that allows the compiler to check that a virtual member declaration overrides a base-class member with the same signature. Also src/blitter/32bpp_anim_sse4.hpp +38 is no longer erroneously marked as virtual despite being a template.
2018-03-11(svn r27984) -Codechange: Make ScopeResolver constructors/destructors ↵frosch
inlineable. Speedup sprite resolving by about 8 percent.
2017-10-25(svn r27928) -Fix: [NewGRF] While executing random triggers, var 5F should ↵frosch
include the new triggers. -Fix: [NewGRF] Reset used random triggers only after all A123 chains have been resolved, so that all RA2 in all chains can test the shard triggers. This also includes multiple RA2 in the same A123 chain. -Fix: [NewGRF] Industry random triggers are stored per tile, even when randomising the shared random bits of the parent industry.
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2013-11-24(svn r26085) -Codechange: Pass ResolverObjects as reference instead of ↵frosch
pointer since they are never NULL.
2012-11-10(svn r24693) -Doc: Add some doxymentation into the newgrf code.alberth
2012-11-10(svn r24692) -Cleanup: Cleanup final parts of the old resolver code.alberth
2012-11-10(svn r24690) -Codechange: Add resolver classes for industry tiles.alberth
2012-11-10(svn r24689) -Codechange: Add resolver classes for industries.alberth
2012-09-21(svn r24535) -Doc: Two additions, lots of small spelling fixes, and some ↵alberth
Doxygen improvements.
2012-01-03(svn r23735) -Codechange: remove ~50 includes from headers that weren't neededrubidium
2011-11-08(svn r23154) -Change: [NewGRF v8] Use heightlevel units in nearby tile info ↵frosch
variables. (rubidium)
2011-11-08(svn r23146) -Change: [NewGRF v8] Make callback 22 return a probability to ↵frosch
use instead of property 18.
2011-11-08(svn r23138) -Feature: [NewGRF] Allow passing 32bit parameters to 60+x ↵frosch
variables (using var 7B). Currently most useful for vehicle var 60.
2010-10-19(svn r20996) -Change: [NewGRF] the X and Y offsets in the parameter for ↵yexo
industry vars 60,61,62,63 are unsigned instead of signed
2010-10-16(svn r20942) -Feature [NewGRF]: make it possible to distinguish player ↵rubidium
built/randomly placed industries in the location and land slope check callbacks
2010-08-26(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to ↵rubidium
some headers
2010-08-07(svn r20396) -Codechange: introduce a helper function to test whether an ↵yexo
industry temporarily refues to accept some cargo
2010-05-29(svn r19901) -Add: [NewGRF] Access to industry founder (var A7) during ↵frosch
callbacks 28 and 2F. (yexo)
2010-05-01(svn r19744) -Add [FS#3477]: [NewGRF] Access to random bits of houses and ↵frosch
industries from construction callbacks 17, 28 and 2F. That is: The randombits the house/industry will start with, if construction succeeds.
2010-02-21(svn r19185) -Codechange: Return succeeded or failed CommandCost from ↵alberth
CheckIfCallBackAllowsCreation().
2010-01-21(svn r18878) -Fix [NewGRF]: crash when a newgrf used var62 in an industry ↵yexo
tile chain when the industry tile was part of an original industry
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-01-29(svn r12006) -Fix: implement FS#1697 without the nasty side effects as ↵rubidium
specified in FS#1712.
2008-01-07(svn r11776) -Codechange: more header splittings to reduce the dependencies.rubidium
2007-09-23(svn r11152) -Fix: GetIndustryIDAtOffset crashed when translation of the GFX ↵rubidium
ID would be needed. Fix by Belugas. -Fix: GetIndustryIDAtOffset crashed when the industry->xy tile was not an industry tile.
2007-09-23(svn r11151) -Codechange: add (partial) support for randomizing industry ↵rubidium
triggers (part of the backend for it). Furthermore update the documentation of the map's bits wrt to industries.
2007-07-25(svn r10690) -Codechange: use the enum that describes all callback IDs in ↵rubidium
favor of "just" using an untyped integer.
2007-07-15(svn r10572) -Codechange: Add function CheckIfCallBackAllowsAvailability for ↵belugas
industries
2007-07-11(svn r10515) -Codechange: allow getting some more data about the environment ↵rubidium
of an industry.
2007-07-11(svn r10514) -Codechange: add support for getting the nearest industry with ↵rubidium
a given type.
2007-07-09(svn r10485) -Codechange: add a callback mechanism to determine whether ↵rubidium
building an industry is allowed at a given location.
2007-07-05(svn r10442) -Codechange: implement the industry production callback.rubidium
2007-06-28(svn r10369) -Codechange: Add the IndustryType parameter to the ↵belugas
GetIndustryCallback function. Sometimes, the industry might not be able to provide its type, since it does not exists at all
2007-06-13(svn r10127) -Add: Addition of basic structure for industry tiles callbacks ↵belugas
(unfinished). -Codechange: ResolverObject receives member gfx, making it compatible for both industries and industry tiles -Codechange: NewIndustryResolver now has his randombits and triggers (even if not implemented)
2007-06-12(svn r10108) -Codechange: implement variable 0x60 (Get industry tile ID at ↵belugas
offset) for industries. It is exposed for for industry tiles who will reuse it too, for variable 0x62.
2007-06-09(svn r10074) -Add: Addition of IndustryOverrideManager as well as the basic ↵belugas
(and unfinished) support for callbacks for industries