summaryrefslogtreecommitdiff
path: root/src/industry.h
AgeCommit message (Collapse)Author
2020-01-12Codechange: Cache resolved town, station and industry name stringsJonathan G Rennison
2020-01-12Change: Only resort industry directory window on production change if necessaryJonathan G Rennison
2019-12-21Codechange: Replace FOR_ALL_INDUSTRIES with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-29Codechange: Remove PartOfSubsidyByteCharles Pigott
2019-04-29Codechange: Remove Company/OwnerByte typesCharles Pigott
2019-03-09Feature: Non-rectangular sparse station catchment area.Peter Nelson
2019-03-08Feature: Industries with neutral stations (e.g. Oil Rig) only supply/accept ↵PeterN
cargo to/from their neutral station. (#7234) This change is a controlled by a game setting, located under Environment -> Industries which allows toggling the behaviour. It defaults to enabled. "Company stations can serve industries with attached neutral stations" When enabled, industries with attached neutral station (such as Oil Rigs) may also be served by company-owned stations built nearby. This is the traditional behaviour. When disabled, these industries may only be served by their neutral station. Any nearby company-owned stations won't be able to serve them, nor will the neutral station serve anything else other than the industry.
2018-11-03Add: NewGRF support for 16-in-16-out industriesNiels Martin Hansen
2018-11-03Add: Industries can produce and accept up to 16 different cargoesNiels Martin Hansen
2017-10-25(svn r27929) -Cleanup: Remove unused Industry::random_triggersfrosch
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-01-03(svn r23735) -Codechange: remove ~50 includes from headers that weren't neededrubidium
2011-12-20(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the ↵truebrain
others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
2011-12-09(svn r23457) -Codechange: introduce Industry::TileBelongsToIndustry() to ↵yexo
simplify code checking for that
2011-10-21(svn r23049) -Fix [FS#4810]: Use the same forest-check for the ↵frosch
vegetation-map colour as for nearby station names.
2011-06-12(svn r22567) -Codechange: Store persistent storages inside a pool.terkhen
2011-06-12(svn r22556) -Codechange: Remove constness from the town pointer at industries.terkhen
2010-11-20(svn r21267) -Doc: Typo fixes.alberth
2010-11-13(svn r21173) -Codechange: Don't recompute target industry counts each time.alberth
2010-11-13(svn r21172) -Feature: Better control over how many new industries are ↵alberth
created during the game.
2010-11-13(svn r21171) -Change: Reset industry build data at game start or load.alberth
2010-11-13(svn r21170) -Codechange: Store industry management data in the save game ↵alberth
(some of it is used in the very near future).
2010-11-13(svn r21168) -Feature: Use desired industry counts rather than relative ↵alberth
probability to decide which industry to build.
2010-11-13(svn r21167) -Codechange: Use IndustryBuildData::builddata instead of a ↵alberth
local variable.
2010-11-13(svn r21166) -Codechange: Move MaybeNewIndustry() to ↵alberth
IndustryBuildData::TryBuildNewIndustry().
2010-10-04(svn r20900) -Codechange: Move ProductionLevels enum to industry.hfrosch
2010-10-04(svn r20896) -Codechange: Split recompution of productionrates for ↵frosch
non-smooth economy to separate function.
2010-08-28(svn r20674) -Codechange: Remove declared functions that do not exist ↵alberth
(anymore) otherwise.
2010-03-21(svn r19497) -Fix: [NewGRF] Bytes and words get sign-extended for ↵frosch
temporary/persistent storage. (Spotted by yexo)
2010-03-20(svn r19481) -Codechange: Turn _industry_counts into a static member of ↵frosch
Industry.
2010-02-08(svn r19062) -Codechange: Move smallmap related functions to their own header.terkhen
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
2010-01-04(svn r18717) -Codechange: use TileArea in industry instead of three separate ↵rubidium
variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry.
2009-09-19(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, ↵rubidium
which were sometimes missing and sometimes just typos
2009-09-08(svn r17472) -Fix [FS#3182]: industry list was rebuilt too early during ↵rubidium
industry removal causing the removed industry to be still in the list after removal
2009-08-30(svn r17316) -Codechange: use Industry::GetByTile() instead of ↵smatz
GetIndustryByTile()
2009-08-30(svn r17315) -Codechange: move code related to industry types to separate filesmatz
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-08(svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when ↵smatz
subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source -Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost -Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
2009-07-22(svn r16914) -Codechange: split Station and BaseStation into different filesrubidium
2009-07-02(svn r16725) -Documentation: raw_industry_cost_multiplierfrosch
2009-06-26(svn r16667) -Codechange: replace GetRandomTown() and GetRandomIndustry() by ↵smatz
Town::GetRandom() and Industry::GetRandom()
2009-05-22(svn r16380) -Codechange: rename pool.hpp to pool_type.hppsmatz
2009-05-22(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and ↵smatz
GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
2009-05-22(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation ↵smatz
time, binary size and run time (with asserts disabled) should be improved
2009-05-22(svn r16377) -Codechange: unify FOR_ALL_* macros, use separate index ↵smatz
variable instead of var->index
2009-05-17(svn r16333) -Cleanup: remove a bunch of unused wrapper functions.rubidium
2009-05-17(svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 ↵rubidium
with < .. - 1 (both caused due to wrapper functions)
2009-05-17(svn r16327) -Codechange: replace IsValidPoolItemID(index) by ↵smatz
PoolItem::IsValidID(index)