113 Commits

Autor SHA1 Nachricht Datum
Filippo Gentile
4c58c9d829 server: split method.hpp implementation
- Added method.tpp file
- Include it where needed
- Use CREATE_DEF when needed
2023-06-18 13:23:31 +02:00
Filippo Gentile
1f58e8685d server: LinkRailTileList unused method.hpp include 2023-06-18 13:23:31 +02:00
Filippo Gentile
6ee4c67e02 server: forward declare Board 2023-06-18 13:23:29 +02:00
Filippo Gentile
86f888d5d0 server: forward declare TrainBlockStatus
- Fix unneded include added on commit b2d1e27914
2023-06-18 13:23:27 +02:00
Filippo Gentile
2d536ee85d server: forward declare Train class 2023-06-18 13:23:26 +02:00
Reinder Feenstra
58433074e2 block: added flip train option, to correct train orientation 2023-05-25 23:50:14 +02:00
Reinder Feenstra
b2d1e27914 added TrainBlockStatus, an object to store information about a train in a block 2023-05-25 23:49:01 +02:00
Reinder Feenstra
9fcded9cc9 fix: use static storage 2023-05-15 20:52:33 +02:00
Reinder Feenstra
b014ed6054 sensorrail: fix: signals were not disconnected on object destroy
see #47
see #58
2023-05-13 13:20:06 +02:00
Reinder Feenstra
d4d71f135e block: on destroy, the block must be removed from the block trains 2023-05-12 00:09:22 +02:00
Reinder Feenstra
735eadcc29 train: added blocks property 2023-05-06 17:21:43 +02:00
Reinder Feenstra
1c0066ab6f objectvectorproperty: moved methods to tpp, to make forward declaration possible 2023-05-06 17:21:43 +02:00
Reinder Feenstra
9ae3d764eb block: activate train when assigned to block
if activation fails it will not be assigned
2023-05-02 22:09:48 +02:00
Reinder Feenstra
a744c560b4 block: added train assigned/remove events 2023-04-11 22:28:36 +02:00
Reinder Feenstra
ac4dcedfce block: assign/remove train now simulates block occupy 2023-04-10 23:23:45 +02:00
Reinder Feenstra
94d21f607b fix: more missing includes 2023-03-30 19:35:11 +02:00
Reinder Feenstra
246b27c434 moved ObjectProperty<> implementation to seperate file
world.hpp now uses forward decl. for many classes, this reduces built time!
see #43
2023-03-30 15:09:11 +02:00
Reinder Feenstra
13fa109c17 block: added trains property and assign/remove train method 2023-03-30 00:10:26 +02:00
Filippo Gentile
6fe8f7af49 Add 2 new positions to Single Slip Switch
This matches recent addition to Double Slip Switch
2023-03-02 00:21:51 +01:00
Filippo Gentile
661b25c1e8 Add 4 new positions to Double Slip Switch turnout
- This adds Left/Right to double switch
- And adds new DoubleSlipStraightA / DoubleSlipStraightB to
TurnoutPosition enum
- Implemented new state drawing in TilePainter
- Updated logic in SignalPath::findBlocks()
2023-02-26 13:08:59 +01:00
Reinder Feenstra
63a5b8c7af rename list add/remove to create/delete
add = add existing item
remove = remove item, but don't destroy it
2023-02-25 23:15:38 +01:00
Reinder Feenstra
ea3fbd8022 bugfix: blocksAhead may only be decremented on block tile 2023-02-06 19:59:14 +01:00
Reinder Feenstra
e490c656bc bugfix: Infinite recursion in SignalPath, closes #7 2023-01-20 21:54:36 +01:00
Reinder Feenstra
61b3db241a bugfix: assert() triggered on invalid data on world close
closes #8
2023-01-17 23:43:39 +01:00
Reinder Feenstra
39213771c2 fix: tile destroy was called multiple times 2022-12-30 21:42:18 +01:00
Reinder Feenstra
150f08a1c4 fix: clang-tidy readability improvements 2022-10-09 21:37:14 +02:00
Reinder Feenstra
52a533b896 corrected include guard and added license 2022-09-12 22:20:05 +02:00
Reinder Feenstra
e9846fe0a8 board: implemented automatic signal control, phase 1
signal doesn't yet take reservations into account, as that isn't supported yet
2022-09-10 23:57:11 +02:00
Reinder Feenstra
2a40eb4115 board: added signal for state/position change of block/direction control/turnout 2022-09-10 23:47:24 +02:00
Reinder Feenstra
dade4eb1c3 board: implemented map node for LinkRailTile 2022-09-10 23:42:08 +02:00
Reinder Feenstra
d450e1fda8 board: fix: no longer connected links weren't disconnected on map rebuild 2022-09-05 22:13:15 +02:00
Reinder Feenstra
298617122d board: added rail decoupler tile 2022-08-21 23:52:24 +02:00
Reinder Feenstra
29ad379b41 board: added link tile to create connections between boards 2022-08-13 23:50:37 +02:00
Reinder Feenstra
e8686fdf71 added missing includes 2022-08-03 08:49:35 +02:00
Reinder Feenstra
81c365606d board: added building node link map of railway plan
for future automatic signals and routes
2022-08-03 00:01:21 +02:00
Reinder Feenstra
04de0072ef fix: >1x1 tile delete didn't work properly 2022-08-02 23:06:07 +02:00
Reinder Feenstra
39c5f584b5 sensor rail tile: removed state from edit dialog
(cherry picked from commit b293f2a6ca62e9213f971acadc5564699fdaf488)
2022-06-19 23:02:50 +02:00
Reinder Feenstra
3129a6c497 board: implememented board properties toolbar item support 2022-06-05 00:07:04 +02:00
Reinder Feenstra
5154f60791 board: available tile info is now read from server 2022-05-13 22:10:45 +02:00
Reinder Feenstra
0f8b8d5c07 turnout: replaced nextPosition by setPosition (position is now readonly) 2022-04-12 21:28:15 +02:00
Reinder Feenstra
781129bc1d signal: replaced nextAspect by setAspect (aspect is now readonly) 2022-04-12 21:21:28 +02:00
Reinder Feenstra
6d677f2300 board: move tile now supports rotating 2022-04-06 23:05:34 +02:00
Reinder Feenstra
8b286cf600 fix: removed std:move (only the last must be moved) 2022-03-25 23:39:11 +01:00
Reinder Feenstra
63b3430f35 fix: don't show direction controls's set state in edit dialog 2022-03-25 23:38:27 +01:00
Reinder Feenstra
b41bd97c48 board: added push button tile 2022-03-25 08:10:37 +01:00
Reinder Feenstra
a19879159a board: added one way and direction controller tile 2022-03-20 20:03:38 +01:00
Reinder Feenstra
5ca6c73892 replaced world weak_ptr by reference
a world must always outlive its objects
2022-01-17 23:31:04 +01:00
Reinder Feenstra
ab5e6baf93 changed interface item name from std::string to std::string_view 2022-01-15 23:50:42 +01:00
Reinder Feenstra
f2457d95a9 Updated nlohmann::json to 3.10.5 2022-01-15 23:16:48 +01:00
Reinder Feenstra
34ccc228e3 fixed many diagnostic/readabilty issues reported by clang-tidy #WIP 2022-01-04 00:09:38 +01:00