summaryrefslogtreecommitdiff
path: root/industry.h
AgeCommit message (Collapse)Author
2006-04-28(svn r4614) CodeChange : Cleanup of industry_cmd (Step-4).belugas
Removing the _industry_type_costs in favor of IndustrySpec.cost_multiplier; In order to let industry_gui use the GetIndustrySpec accessor, some structs had to be moved in industry.h
2006-04-10(svn r4350) CodeChange : Add and use accessors [G|S]etIndustrype. Define and ↵belugas
use IndustryGfx type instead of uint
2006-04-10(svn r4347) CodeChange : Renamed IndustryType to IndustryLifeType. Cleanup ↵belugas
step toward bringing accessors [G|S]etIndustrype
2006-03-27(svn r4134) Revert part of r4133: Replacing a byte which gets written to ↵tron
savegames by an enum is a very bad idea
2006-03-26(svn r4133) - Some miscellaneous changes (unconverted TownID in function ↵Darkvater
definition, Owner instead of byte, remove obsolete member and compare waypoint index with 0 not STR_NULL)
2006-03-26(svn r4128) - CodeChange: Add proper semantics for CargoID for such ↵Darkvater
variables instead of using the general byte-type.
2005-11-13(svn r3172) static, consttron
2005-09-18(svn r2962) - const correctness for all Get* functions and most Draw* ↵Darkvater
functions that don't change their pointer parameters - change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-02-06(svn r1834) - Fix: NPF does not check the owner of its target, busses try to ↵matthijs
enter other players' depots. TODO - Add: asserts to find the v->u.rail.track == 0 problem. - Add: IsValidDepot(), IsValidTown(), IsValidSign(), IsValidVehicle(), IsValidStation() - Add: GetTileOwner(), IsTileOwner() - Codechange: Replaced IsShipDepotTile(), IsTrainDepotTile(), IsRoadDepotTile() by IsTileDepotType(). - Codechange: typedeffed the MAP_OWNERS as Owner. Should be used as variable type. - Codechange: Replaced a few uint by TileIndex.
2005-02-02(svn r1771) -Add: Industries are now dynamic (up to 64k industries). Generating truelight
1kx1k maps should now be much faster, and give more than just oil-stuff ;)
2005-01-29(svn r1724) Set maximum number of industries and towns to 250 eachtron
2005-01-06(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns ↵truelight
and _industries (in prepare of dynamic arrays): - DEREF_XXX is changed into GetXXX - All direct call are directed via GetXXX - struct Industry has now an index-field - ENUM'd some stuff - Replaced home built loops with FOR_ALL_XXX - Added _stations_size, _vehicles_size, ... which gives the length of the array (which will be dynamic in the near future) - Changed lengtof(XXX) to _XXX_size (e.g. _stations_size) - Removed all endof(XXX) (because mostly it was part of a FOR_ALL_XXX) - Made the sort-functions of all 4 dynamic - Made all 4 Initialize functions more of the same - Some minor tab-fixing and stuff (tnx to Tron for proof-reading my 100kb patch ;)) Note for all: please do NOT directly call _stations, _vehicles, _towns and _industries, but use the right wrapper to access them. Thank you. Ps: please also do not use 'v++', where v is of type Vehicle *.
2004-12-30(svn r1301) -Codechange: _industries finally has FOR_ALL_INDUSTRIES tootruelight
2004-08-09(svn r1) Import of revision 975 of old (crashed) SVNtruelight