summaryrefslogtreecommitdiff
path: root/src/vehicle.h
AgeCommit message (Collapse)Author
2007-12-27(svn r11706) -Codechange: split vehicle.h and remove another bunch of ↵rubidium
useless includes.
2007-12-26(svn r11702) -Codechange: move all date related stuff to date*.rubidium
2007-12-25(svn r11700) -Codechange: reduce the amount of unnecessary includes.rubidium
2007-12-25(svn r11692) -Codechange: move some functions from 'functions.h' to a more ↵rubidium
logical place and remove about 50% of the includes of 'functions.h'
2007-12-23(svn r11684) -Codechange: split gfx.h in a type and functional header.rubidium
2007-12-21(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.rubidium
2007-12-19(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.hrubidium
2007-12-19(svn r11667) -Codechange: split window.h into a header that defines some ↵rubidium
'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
2007-12-18(svn r11663) -Codechange: moving of the road related types and functions.rubidium
2007-12-14(svn r11633) -Codechange: merge CheckTunnelEmpty and IsVehicleOnBridge into ↵smatz
GetVehicleTunnelBridge
2007-11-15(svn r11431) -Codechange: [NewGRF] Add support for changing rail vehicle ↵glx
user-defined bit mask (prop 25) via callback 36
2007-10-28(svn r11353) -Codechange: add support for newgrf callback 32glx
2007-10-28(svn r11352) -Codechange: cache callback 2D result (vehicle color mapping) ↵glx
instead calling it every time the vehicle is drawn
2007-09-09(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the ↵rubidium
Vehicle::first pointer correctly set.
2007-09-09(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting ↵rubidium
subsystem. Patch by Progman.
2007-09-07(svn r11057) -Fix [FS#1215]: loading TTD savegames went into an infinite ↵rubidium
loop due to not yet properly set next and previous pointers.
2007-08-30(svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game ↵rubidium
state while being marked const. -Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
2007-08-30(svn r11004) -Codechange: some reworks of the saveload mechanism to be able ↵rubidium
to save and load private and protected variables in the vehicle struct.
2007-08-30(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and ↵rubidium
Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
2007-08-29(svn r11001) -Codechange: unify the way to determine whether a vehicle is in ↵rubidium
a depot.
2007-08-29(svn r10999) -Codechange: unify the way the running cost of a vehicle is ↵rubidium
determined. Patch by nycom.
2007-08-29(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.rubidium
2007-08-28(svn r10995) -Codechange: unify the way to get the displayed maxium speed of ↵rubidium
a vehicle. Patch by nycom.
2007-08-26(svn r10985) -Codechange: unify/remove duplicate ↵rubidium
CcClone(Aircraft|RoadVeh|Ship|Train) in favour of CcCloneVehicle.
2007-08-26(svn r10984) -Codechange: unify the way one can get the current speed in the ↵rubidium
same forwat so we can display it.
2007-08-05(svn r10799) -Fix: only calling QuickFree and not the destructor on pool ↵rubidium
cleanups might cause memory leaks due to the way C++ works.
2007-08-05(svn r10798) -Fix [FS#1105]: virtual functions do not work in destructors :(.rubidium
2007-08-03(svn r10772) -Codechange: also make use of the generic clean and destroy ↵rubidium
pool callback functions for vehicle.
2007-08-03(svn r10770) -Codechange: use the pool item class as super class for the ↵rubidium
vehicle struct. -Codechange: do not force "special" vehicles to be allocated in the low 1024 vehicle slots and non "special" vehicles in the rest of the slots.
2007-08-02(svn r10756) -Codechange: use vehicle->IsValid in favour of ↵rubidium
IsValidVehicle(vehicle).
2007-07-26(svn r10697) -Codechange: give a more sensible names to some of the unkX ↵rubidium
variables.
2007-07-24(svn r10673) -Cleanup: some assorted style cleanups. Primarily type* var -> ↵rubidium
type *var.
2007-07-01(svn r10409) -Codechange: replace (Aircraft|RoadVeh|Ship|Train)_Tick with a ↵rubidium
Tick method in the Vehicle class.
2007-07-01(svn r10408) -Codechange: make GetImage a class method of Vehicle instead of ↵rubidium
Get(Aircraft|RoadVeh|Ship|Train)Image.
2007-06-27(svn r10363) -Fix [FS#911]: invalidating autoreplace windows didn't take ↵peter1138
account of vehicle group (Matthias Wolf)
2007-06-27(svn r10353) -Fix/Feature [FS#669]: disallow (in the GUI) the building of ↵rubidium
infrastructure you do not have available vehicles for. This means that the airport building button is disabled till you can actually build aircraft. The game itself will not disallow you to build the infrastructure and this "new" behaviour can be overriden with a patch setting.
2007-06-25(svn r10331) -Feature: Add the possibility of automatically filling in ↵maedhros
timetables based on the times from the first (or subsequent) run-throughs.
2007-06-22(svn r10270) -Add: prefixed the loading indicator with an arrow, up meaning ↵truelight
vehicle is loading, down meaning vehicle is unloading
2007-06-22(svn r10266) -Codechange: keep track of the origin, time of travel and ↵rubidium
accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it.
2007-06-21(svn r10254) -Feature: loading indicator, which shows in % how full a ↵truelight
vehicle is while loading/unloading (TheJosh)
2007-06-20(svn r10236) -Feature: Introduce a form of timetabling for vehicles.maedhros
2007-06-18(svn r10208) -Codechange: replace int32 with Money where appropriate.rubidium
2007-06-18(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.rubidium
2007-06-12(svn r10111) -Codechange: Add new vehicle hash table for collision detection ↵peter1138
and finding vehicles on a tile. The hash area scanned is far smaller than the old hash table, which is now used for viewport updates only. This should give a significant performance improvement for games with many vehicles. (Based on work by 'B. N. SmatZ!' and 'madman2003')
2007-06-11(svn r10097) -Feature: Add support for articulated road vehicles, or ↵maedhros
callbacks 11 and 17 for road vehicles for those who prefer the technical explanation.
2007-06-01(svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace ↵maedhros
individual checks depending on the vehicle type.
2007-05-24(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple ↵rubidium
road types on a single tile.
2007-05-19(svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you ↵rubidium
can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13.
2007-05-18(svn r9872) -Codechange: more type strictness for vehicle typesrubidium
2007-05-15(svn r9841) -Codechange: add a little more type strictness to the vehicle types.rubidium