summaryrefslogtreecommitdiff
path: root/src/engine_base.h
AgeCommit message (Collapse)Author
2009-10-31(svn r17926) -Fix (r9352): Make the decision whether aircraft carry mail ↵frosch
consistent. Now always the cargo class decides.
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-17(svn r17209) -Codechange: Move cargo_type from (Rail|Road|Ship)VehicleInfo ↵frosch
to EngineInfo.
2009-06-17(svn r16586) -Codechange: don't store lifelength in the savegame; it can ↵rubidium
easily be calculated, it isn't used often and now changing extend_vehicle_life in game has some effect.
2009-06-16(svn r16581) -Codechange: unify the access to Engine::lifelength.rubidium
2009-06-16(svn r16580) -Codechange: rename Engine::image_index to original_image_index ↵rubidium
to not confuse it with image_index from *VehInfo.
2009-05-22(svn r16380) -Codechange: rename pool.hpp to pool_type.hppsmatz
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-18(svn r16354) -Codechange: use 'new' pool accessors and methods for Engine toosmatz
2009-05-16(svn r16326) -Codechange: replace GetPoolItemPoolSize() by ↵smatz
PoolItem::GetPoolSize()
2009-05-16(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)smatz
2009-03-18(svn r15763) -Codechange/Fix: Add Engine::GetDisplayDefaultCapacity() and ↵frosch
use it everywhere, so CB 36 is also used everywhere.
2009-03-08(svn r15645) -Fix (r12924)[FS#2612]: Add an EngineOverrideManager to give ↵frosch
the term 'compatible newgrf' again some sense and to not crash because of trivial changes.
2009-02-21(svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, ↵frosch
which cannot accept CT_INVALID. -Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them. -Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection. -Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'. Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects. Note: It is intentional that you cannot control refittability by CB 36.
2009-02-19(svn r15521) -Codechange: add helper function to get the display tractive ↵rubidium
effort of a vehicle.
2009-02-01(svn r15306) -Codechange: Deduplicate code by adding ↵frosch
Engine::GetDisplayMaxSpeed(), GetPower() and GetDisplayWeight(). (and using them)
2009-01-25(svn r15263) -Codechange: added Engine::GetCost() to remove some code ↵glx
duplication.
2009-01-24(svn r15261) -Add: added Engine::GetRunningCost() to remove some code ↵glx
duplication. Also stops AIs decrementing vehicle counter of first company
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-07-25(svn r13825) -Revert (r13821 partially): preview_player_rank wasn't a ↵peter1138
PlayerByte value in r12143, and still isn't a PlayerByte value.
2008-07-25(svn r13821) -Codechange: replace some uint8/bytes with more specificly ↵rubidium
named typedefs and replace a few magic numbers.
2008-04-29(svn r12924) -Feature: Introducing the so called 'engine pool' which ↵peter1138
primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.