Rubidium
5b3b7995bb
Codechange: make PerformanceElement scoped
2026-06-28 16:55:28 +02:00
Peter Nelson
a55bd4e041
Codechange: make TransportType a scoped enum
2026-06-22 11:59:24 +02:00
Peter Nelson
9f49ea4177
Codechange: make EngineImageType a scoped enum ( #15755 )
2026-06-21 08:05:41 +00:00
Peter Nelson
c3b0d71973
Codechange: use EnumRange over many enum loops
2026-06-13 21:54:42 +01:00
Peter Nelson
0149e4a349
Codechange: make Trackdir a scoped enum and TrackdirBits an EnumBitSet ( #15696 )
2026-06-11 14:40:15 +01:00
Peter Nelson
c9cf141813
Codechange: make Track a scoped enum and TrackBits an EnumBitSet ( #15684 )
...
Helper methods to convert Track to TrackBits are removed as they are no longer necessary.
2026-06-08 23:05:51 +01:00
Peter Nelson
a85d10bf7c
Codechange: use IsValidTrack to test for valid track in more places ( #15677 )
2026-06-06 11:33:46 +01:00
Peter Nelson
a892d8e848
Codechange: rename and make StationVehicleType a scoped enum ( #15674 )
...
StatiionHadVehicleOfType renamed to StationVehicleTypes and turned into an EnumBitSet
2026-06-04 23:16:23 +01:00
Peter Nelson
dcb3810840
Codechange: additional TrackdirIndexArray conversion
2026-06-02 18:58:10 +01:00
Peter Nelson
28cd6a3d33
Codechange: make TrackStatus a struct instead of opaque uint32_t ( #15653 )
2026-05-31 18:09:26 +01:00
Peter Nelson
d6783335ca
Codechange: make Direction a scoped enum
2026-05-31 13:11:53 +01:00
Peter Nelson
f010c21f1a
Codechange: make DiagDirection a scoped enum
2026-05-31 13:11:53 +01:00
Peter Nelson
356ca9c6d9
Codechange: use static_cast/to_underlying when converting Direction
2026-05-31 13:11:53 +01:00
Peter Nelson
ee0d9f662e
Codechange: rework definition of ship and train tile entrance coordinates ( #15650 )
2026-05-31 08:16:26 +01:00
Peter Nelson
81bdc44d1a
Codechange: use EnumIndexArray for Direction and DiagDirection indexed arrays
2026-05-30 07:39:21 +01:00
Peter Nelson
568c7bb259
Codechange: make DirDiff a scoped enum
2026-05-28 17:10:31 +01:00
Peter Nelson
e6cf643103
Codechange: add function to limit direction difference
2026-05-28 17:10:31 +01:00
Rubidium
bcda4a72ee
Codechange: make WindowClass a scoped enum
2026-05-20 21:39:04 +02:00
Peter Nelson
792f6d99a3
Codechange: make ExpensesType a scoped enum ( #15572 )
2026-05-04 08:20:52 +01:00
Peter Nelson
77403627a8
Codechange: make VehicleType a scoped enum
2026-04-26 07:00:13 +01:00
Peter Nelson
a5a60c8615
Codechange: make RoadTramType a scoped enum, and use EnumBitSet ( #15477 )
2026-04-13 18:15:41 +01:00
Rubidium
bcd98a6ba5
Codechange: document a number of functions and variables
2026-04-06 21:17:17 +02:00
Cyprian Klimaszewski
97f3e5b70f
Codechange: Make TileType enum an enum class.
2026-01-24 08:34:05 +01:00
Cyprian Klimaszewski
322ce224b4
Codechange: Make Price an enum class.
2026-01-14 22:07:02 +01:00
Rito12
dc663d7b0a
Feature: Allow to build buoys at (0x0).
2026-01-05 21:26:47 +01:00
Rubidium
2fcd4e189a
Codechange: replace 'new PoolItem(...' with 'PoolItem::Create(...'
2026-01-03 16:04:32 +01:00
Cyprian Klimaszewski
99f04f27de
Doc: Update information for receiving a copy of GPL. ( #14869 )
2025-12-07 11:25:08 +00:00
Peter Nelson
046b0c6267
Codechange: Use enum class and EnumBitSet for various order flags. ( #14783 )
2025-12-06 12:29:11 +00:00
Peter Nelson
98275ee5d3
Codechange: Use enum class for water-related enums. ( #14804 )
2025-11-19 20:35:11 +00:00
Peter Nelson
2851c70a59
Codechange: Use enum class for RailGroundType.
2025-11-17 20:46:05 +00:00
Peter Nelson
5ed8f1203b
Codechange: Cleanup unnecessary includes of spritecache.h ( #14678 )
2025-09-28 17:09:57 +00:00
Kuhnovic
aa6fb0e9e5
Codechange: Simplified logic of ship leaving a depot. ( #14661 )
2025-09-26 13:35:11 +02:00
Peter Nelson
42c9f84d74
Fix 3ac1a2f1e4: Game crash due to invalid vehicle type information. ( #14628 )
...
Use std::variant instead of union for vehicle info.
RailVehicleInfo is now non-POD so using in a union causes undefined behaviour.
2025-09-24 22:44:41 +01:00
Peter Nelson
921d83c324
Codechange: Unify structures with sprite sub-tile bounds and simplify bounding boxes. ( #14424 )
...
Lots of different structs contain variations on sub-tile bounds with different naming. Unify into a single struct that can be inherited and passed directly to AddSortableSpriteToDraw.
At the same time, offsets now work more logically: sub-tile bounds now specify the bounding box, and an offset can be applied to the sprite.
2025-07-22 00:02:00 +01:00
Kuhnovic
34c0b09764
Codechange: Removed T prefix from water region related types. ( #14290 )
2025-05-24 18:12:16 +02:00
frosch
06c399b79e
Codechange: Replace HasVehicleOnPos and callbacks with HasVehicleOnTile and lambda-predicates.
2025-04-22 22:12:59 +02:00
frosch
2a62eea005
Codefix: Comment style. ( #14064 )
2025-04-21 17:25:09 +02:00
Peter Nelson
fc45bb5a2b
Codechange: Replace bitstuffed VehicleEnterTileStatus. ( #14027 )
...
VehicleEnterTileStatus was an bitset-style enum, but bitstuffed with a StationID. However the StationID part was only used by trains, and only in two locations.
Instead, return just the enum bitset. The two places which require the StationID just call GetStationIndex() directly.
2025-04-20 21:10:02 +01:00
frosch
b862d4937f
Codechange: Turn custom vehicle spritenums into enum, and use them consistently. ( #14022 )
2025-04-18 15:19:28 +02:00
Peter Nelson
936d78fefc
Codefix: Avoid uppercase characters in variable names. ( #13985 )
2025-04-10 07:19:27 +01:00
Peter Nelson
8b39b23d2b
Codechange: Use EnumBitSet for VehicleFlags. ( #13793 )
2025-03-13 08:38:54 +00:00
Peter Nelson
91d22f7617
Codechange: Use EnumBitSet for VehStates. ( #13755 )
...
Renamed from VehStatus because pluralising that is weird.
2025-03-08 18:24:21 +00:00
Peter Nelson
6e10584b91
Codechange: Use EncodedStrings for News messages. ( #13654 )
2025-02-23 20:24:02 +00:00
SamuXarick
718a45b845
Fix 11a8b71: Set direction and rotation of ships upon building ( #13625 )
2025-02-22 23:33:25 +00:00
Rubidium
fd4adc55e3
Codechange: replace INVALID_X with XID::Invalid() for PoolIDs
2025-02-16 20:23:00 +01:00
Rubidium
c3d5e6d2a0
Codechange: Use EnumBitSet for DoCommandFlags
2025-02-14 00:28:57 +01:00
Peter Nelson
75387b9e2b
Codechange: Use EnumBitSet for StationFacility.
2025-02-13 18:03:13 +00:00
Jonathan G Rennison
d06b371254
Cleanup: Fix various spelling errors
2025-02-12 22:44:51 +01:00
Peter Nelson
ca75a8ce19
Codechange: Use enum class for NewsType.
2025-02-07 19:36:52 +00:00
Rubidium
e937c4dcfd
Codechange: change DestinationID into class with conversion helpers
...
A DestinationID is either a DepotID or StationID, where the aircraft hangar
being conceptually a depot is actually a StationID. When making those types
stronger, a lot of casts would need to be added, but this shows the intent
much better.
2025-02-06 21:03:24 +01:00