Tulio Leao
63f683853e
Merge pull request #12479 from pizza2004/news-enum
...
Refactor NewsItem to use strong enums
2020-07-28 18:21:45 -03:00
pizza2004
cee7f8d34c
Close #12397 : Refactor NEWS_ITEM_* to use strong enum
2020-07-28 12:54:18 -06:00
Duncan
8a378ad236
Remove uses of GET_PEEP macro and replace with GetEntity ( #12467 )
...
* Use TryGetEntity and GetEntity instead of macro
* Use GetEntity for ui guest window
* Remove final GET_PEEP macro uses
* Fix remaining issues
2020-07-26 17:42:02 +01:00
Matt
fa2bd4cad6
Refactor PeepType to use strong enum
2020-07-25 11:54:37 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
frutiemax
f49149222e
Close #12245 : Use coords objects for SetLocation (Window_internal.h)
2020-07-16 23:01:42 +02:00
Duncan
94b3598102
Tiny GetEntity Refactor ( #12124 )
...
* Use default template parameter instead of specialising
* Fix null deref issues
2020-07-06 22:02:25 +01:00
duncanspumpkin
e51bbeed23
Convert SPRITE_LIST to an enum class
2020-07-04 07:38:11 +01:00
duncanspumpkin
6ed17b4ff9
Remove FOR_ALL_PEEPS/GUESTS/STAFF macros
...
Replaced with an EntityList iterator
Fix formatting
Fix nullptr issues
2020-06-16 20:27:44 +01:00
duncanspumpkin
904e6c6987
Implement GetSprite and use it in a number of places
...
This will eventually replace all of the get_sprite and try_get_sprite calls
Further use of GetSprite
Use GetSprite in all remaining easy to use functions
Correct formatting
Rename GetSprite to GetEntity
Make suggested changes
Remove const to allow for building
Fix crashes due to next sprite
2020-06-16 20:21:56 +01:00
hdpoliveira
a3fe90c250
Create SpriteBase::Invalidate methods ( #11948 )
2020-06-14 15:18:07 -03:00
Tulio Leao
e54a3d89f2
Rename some Peep member variables to use TitleCase ( #11931 )
...
* Rename Peep::destination_tolerance to use TitleCase
* Rename Peep::destination_y to use TitleCase
* Rename Peep::destination_x to use TitleCase
* Rename Peep::trousers_colour to use Title Case
* Rename Peep::tshirt_colour to use TitleCase
* Rename Peep::no_of_rides to use Title Case
* Rename Peep::staff_type to use TitleCase
* Rename Peep::type to use TitleCase
* Rename Peep::sprite_type to use TitleCase
* Rename Peep::sub_state to use TitleCase
* Rename Peep::state to use TitleCase
* Rename Peep::outside_of_park to use TitleCase
* Rename Peep::next_flags to use TitleCase
* Rename Peep::name to use TitleCase
* Rename Peep::NoOfRides to GuestNoOfRides
* Rename Peep::Type to AssignedPeepType
* Rename Peep::GuestNoOfRides to GuestNumRides
2020-06-14 06:31:08 +01:00
Tulio Leao
a993ad8408
Rename Peep::energy to Energy
2020-06-08 23:34:35 -03:00
Tulio Leao
1c59cc2aae
Rename Peep::energy_target to EnergyTarget
2020-06-08 23:32:22 -03:00
Michael Steenbeek
9ef8d6da42
Convert most remaining C-style casts to C++-style ones ( #11867 )
2020-06-07 23:18:11 +02:00
duncanspumpkin
5c48e5f0bb
Remove AsPeep
2020-06-06 11:36:48 +01:00
Gymnasiast
9a9ab47856
Remove Twitch from the rest of the code
2020-05-28 09:28:32 +02:00
Gymnasiast
cc65564521
Use (RCT12)ObjectEntryIndex in more places
2020-05-01 22:06:13 +02:00
Gymnasiast
bafb63df55
Add missing RIDE_TYPE_NULL check
2020-04-30 13:58:48 +02:00
Gymnasiast
6cdee9db93
Fix #7006 : Use RTDs for determining ride category
2020-04-30 12:59:18 +02:00
Michał Janiszewski
2323cc1596
Use named casts instead of old-style casts
...
Change prepared with clang-tidy and google-readability-casting check
2020-04-22 17:09:29 +02:00
Julian
a6684603d8
Load_Park feature for headless server ( #11218 )
...
* Load_Park feature
New feature "load_park name" from "save" folder.
* Fix codestyle
-
* Fix codestyle
-
* Fixed typo for load_park
load_park is now <name> instead of [name]
* improve load_park command
allow to specify park via absolute path
make .sv6 filename extension optional
support .sc6 filename extension, but default to .sv6
* report success or failure of load_park to console
Co-authored-by: quadratrund <56112624+quadratrund@users.noreply.github.com >
2020-04-16 16:36:00 +02:00
Michał Janiszewski
46f8c1458e
Add add_news_item to the console ( #11281 )
2020-04-16 16:27:48 +02:00
duncanspumpkin
1395b9a9c1
Fix normalisation writing files to unknown location
2020-04-12 10:54:17 +01:00
Michał Janiszewski
e19eaa6a98
Upload park recording in case of crash
2020-04-02 23:44:59 +02:00
Michael Steenbeek
d86dce17e8
Prepare object indices for uint16_t (part 2) ( #10966 )
2020-03-18 21:27:53 +01:00
jeysbach
568b19e7b3
Feature #10637 : Console command for removing floating objects
2020-03-16 09:48:26 +01:00
Michael Steenbeek
18ebe73dfa
Replace object_entry_get_type() with method ( #10937 )
2020-03-15 12:07:04 +01:00
Michael Steenbeek
be13c1fc87
Refactor more TileCoords
2020-03-07 21:07:18 +01:00
Gymnasiast
2eb967b30d
Change station start to CoordsXY
2020-03-05 12:29:02 +01:00
Gymnasiast
66dbb5e166
Refactor access to ResearchItem's rawValue
2020-01-26 15:17:37 +01:00
duncanspumpkin
08ea5585ee
Small refactors and cleanups
2020-01-19 17:16:42 +00:00
duncanspumpkin
5e9e9df7ce
Refactor invalidate_sprite
2020-01-19 17:16:42 +00:00
duncanspumpkin
a5ef8d6240
Rename rct_vehicle
2020-01-19 17:14:56 +00:00
ζeh Matt
2242a72b29
Add assertion failure reason to the Backtrace service integration ( #10562 )
2020-01-13 19:22:45 +01:00
Michael Steenbeek
77494bbc73
Create definitions for some coords related stuff ( #10456 )
...
* Create definitions for some coords related stuff
* Use constexpr; add define for Z step
2019-12-30 15:03:51 +00:00
Tulio Leao
47935288d0
Remove raw coordinates overload of get_map_coordinates_from_pos
2019-11-25 17:45:02 -03:00
Ted John
9be0130f2d
Show image limit in show_limits console command ( #9935 )
2019-08-26 12:28:37 +01:00
Hielke Morsink
bd42977243
Fix: Fences still visible after using remove_park_fences
2019-08-23 21:01:08 +02:00
duncanspumpkin
c6452095ca
Refactor tile_element_height to use CoordsXY
2019-08-19 20:04:57 +01:00
Matt
b046d45c01
Refactor window_set_location to use rct_window::SetLocation
2019-08-11 17:21:56 +02:00
Ted John
9954f0b725
Add nullptr checks for more instances of get_ride ( #9819 )
2019-08-09 14:20:59 +01:00
Ted John
a863c7ae50
Remove rest of FOR_ALL_RIDES instances
2019-08-04 16:44:17 +01:00
Ted John
e23638548a
Reduce use of MAX_RIDES and RIDE_TYPE_NULL
2019-08-04 16:44:17 +01:00
Ted John
a3fe00f0a3
Refactor ride list to a manager with iterator
2019-08-04 16:43:50 +01:00
Ted John
d28799ef18
Remove user strings
2019-07-29 20:01:37 +01:00
Ted John
40d49b93d3
Do not use user strings for peep names
2019-07-29 19:18:16 +01:00
Ted John
6fff2079f9
Refactor ride name to dynamic args and std::string
2019-07-29 19:18:16 +01:00
Ted John
0b4d989a67
Rename get_banner to GetBanner
2019-07-26 17:24:19 +01:00
Ted John
5c07c53faf
Refactor get banner
2019-07-25 22:21:19 +01:00