Kp
885296b136
Move Control_center_been_hit to d_level_unique_control_center_state
2019-08-15 01:34:22 +00:00
Kp
f988948eef
Move Countdown_timer to d_level_unique_control_center_state
2019-08-15 01:34:22 +00:00
Kp
21c927584b
Move Total_countdown_time to d_level_unique_control_center_state
2019-08-15 01:34:22 +00:00
Kp
707b3c5b0d
Move Countdown_seconds_left to d_level_unique_control_center_state
2019-08-15 01:34:22 +00:00
Kp
519edb9e16
Move Control_center_destroyed to d_level_unique_control_center_state
2019-08-15 01:34:22 +00:00
Kp
4b0f797d7e
Move Secret_return_orient to d_level_shared_segment_state
2019-08-06 02:59:41 +00:00
Kp
ad16d90dd5
Move Secret_return_segment to d_level_shared_segment_state
2019-08-06 02:59:41 +00:00
Kp
215252b8ca
Fold Final_boss_is_dead into Final_boss_countdown_time
2019-08-06 02:59:40 +00:00
Kp
3d8c02fefa
Move Final_boss_is_dead to d_game_unique_state
2019-08-06 02:59:40 +00:00
Kp
7d803cf63e
Move some save/restore functions to dcx/dsx as appropriate
2019-08-06 02:59:40 +00:00
Kp
de77d2412b
Move Automap_visited to d_level_unique_automap_state
2019-08-06 02:59:40 +00:00
Kp
635ae0b595
Use typedef for savegame description
2019-07-28 21:09:07 +00:00
Kp
5683c2b6ed
Simplify skipping unnecessary callsign in savegame preview
2019-07-28 21:09:07 +00:00
Kp
f43141f738
Use typedef for savegame file path
2019-07-28 21:09:07 +00:00
Kp
91bb7e533c
Move player::hostages_total to d_game_unique_state
...
The number of hostages in a game is a function of the the game's levels,
not any particular player. Move it to d_game_unique_state and rename it
to total_hostages.
2019-07-16 04:00:50 +00:00
Kp
8f475021ca
Move player::hostages_level to d_level_unique_object_state
...
The number of hostages on a level is a function of the level, not any
particular player. Move it to d_level_unique_object_state and rename it
to total_hostages.
2019-07-16 04:00:50 +00:00
Kp
2ca2de6ee7
Move player::num_robots_total to d_game_unique_state
...
The number of robots accumulated in a game is a function of the the
game's levels, not any particular player. Move it to
d_game_unique_state and rename it to accumulated_robots.
2019-07-16 04:00:50 +00:00
Kp
a24de0c003
Move player::num_robots_level to d_level_unique_object_state
...
The number of robots accumulated on a level is a function of the level,
not any particular player. Move it to d_level_unique_object_state and
rename it to accumulated_robots.
2019-07-16 04:00:50 +00:00
Kp
46a327eb35
Move relocated player data to wrapper type
2019-07-16 04:00:50 +00:00
Kp
0c7de10512
Track chosen pilot name outside Players[]
...
Players need not be defined outside a game, but the pilot's name needs
to be available outside a game. Therefore, track it outside Players[].
2019-07-07 22:00:02 +00:00
Kp
bfeca84bb8
Change object::signature to be a generation counter
...
This removes the need to walk all objects when creating a new one, since
each object can have a private generation counter, unaware of other
objects. For compatibility with demos, mix in the object's index when
writing the signature value.
2019-07-07 22:00:02 +00:00
Kp
1eaaff3016
Move Difficulty_level to GameUniqueState
2019-06-27 03:26:20 +00:00
Kp
af166735cc
Use enum class for player visibility
2019-06-20 04:02:27 +00:00
Kp
2243cd7f58
Use xrange for loops with zero start and constant numerical end
...
s/for\s*(\s*\(\w\+\)\s\+\(\w\+\)\s*=\s*0\+u\?\s*;\s*\2\s*\(!=\|<\)\s*\([0-9]\+\)u\?\s*;\s*\(++\s*\2\|\2\s*++\s*\))/range_for (const \1 \2, xrange(\4u))/
2019-05-04 18:27:36 +00:00
Kp
4d8d244bb9
Move spreadfire,helix orientation to player_info
2019-05-04 18:27:36 +00:00
Kp
3aed2a1719
Move Num_robot_centers to d_level_shared_robotcenter_state
2019-03-12 04:01:07 +00:00
Kp
1008ab397e
Move Objects to d_level_unique_object_state
2019-03-03 00:31:08 +00:00
Kp
84fa2cde4a
Move Num_fuelcenters to d_level_unique_fuelcenter_state
2019-02-02 18:36:39 +00:00
Kp
943e0a8b5f
Move Station to d_level_unique_fuelcenter_state
2019-02-02 18:36:39 +00:00
Kp
919580eaa9
Move RobotCenters to d_level_shared_robotcenter_state
2019-02-02 18:36:39 +00:00
Kp
0b319e2736
Print an error to the console when saving a game fails
2019-01-20 05:36:55 +00:00
Kp
e84a65edc6
Move Robot_info into LevelSharedRobotInfoState
2018-12-30 00:43:59 +00:00
Kp
6ee28c3fe0
Move Triggers to d_level_unique_trigger_state
2018-12-30 00:43:58 +00:00
Kp
4b125af449
Move ActiveDoors to d_level_unique_active_door_state
2018-12-30 00:43:58 +00:00
Kp
865bad8607
Move CloakingWalls to d_level_unique_cloaking_wall_state
2018-12-30 00:43:58 +00:00
Kp
9be3c8e2e8
Move Walls into d_level_unique_wall_state
2018-12-30 00:43:58 +00:00
Kp
b3cd7588ef
Move Delta_lights into d_level_shared_destructible_light_state
2018-12-30 00:43:58 +00:00
Kp
46644b4e91
Move Dl_indices into d_level_shared_destructible_light_state
2018-12-30 00:43:58 +00:00
Kp
040de5b10e
Rename ObjectState to LevelUniqueObjectState for consistency
2018-12-30 00:43:57 +00:00
Kp
1a5844e218
Move Vertices out of global scope
2018-12-30 00:43:57 +00:00
Kp
aa9e6da297
Pass Dl_indices as context
2018-12-30 00:43:57 +00:00
Kp
992f35feb8
Expand Num_walls to Walls.get_count()
...
This will simplify propagating use of Walls.
2018-12-13 02:31:39 +00:00
Kp
706a704c6d
Move unique_side to unique_segment
2018-12-13 02:31:38 +00:00
Kp
35d91d389a
Raise player life count storage from uint8_t to uint16_t
...
Reported-by: Buff Skeleton <https://forum.dxx-rebirth.com/showthread.php?tid=1096 >
2018-12-01 01:58:37 +00:00
Kp
e9c9943470
Pass context to update_object_seg
2018-10-08 03:58:48 +00:00
Kp
36ada21c0c
Fold exploding walls into regular walls
2018-08-12 21:08:07 +00:00
Kp
b316afc30f
Clear exploding walls during init
2018-08-12 21:08:07 +00:00
Kp
db80a88ad2
Improve error message on failure to load mission
2018-07-03 05:59:39 +00:00
Kp
0c3e99f14c
Split side uses based on shared vs unique
2018-06-24 05:06:15 +00:00
Kp
6ab28cb8cb
Use enum for Difficulty_level
2018-05-12 18:24:19 +00:00