681 Commits

Autor SHA1 Nachricht Datum
Reinder Feenstra
eb6aefab09 traintastic diy: added throttle subscribe support 2023-04-02 22:52:48 +02:00
Reinder Feenstra
78dd66b096 train: fix: isStopped wasn't alway true when stopped 2023-03-30 23:36:20 +02:00
Reinder Feenstra
904c3f9891 train: fix: added missing registration of isStopped 2023-03-30 23:35:20 +02:00
Reinder Feenstra
94d21f607b fix: more missing includes 2023-03-30 19:35:11 +02:00
Reinder Feenstra
f554a2c9d1 fix: added missing include 2023-03-30 18:59:41 +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
Reinder Feenstra
ffcc9bd877 add support for StoreState save/load object vector properties 2023-03-29 23:49:54 +02:00
Reinder Feenstra
f3d7bee1ef objectvectorproperty: added clearInternal() 2023-03-28 23:15:30 +02:00
Reinder Feenstra
cf27823cc9 objectproperty: added setValueInternal(std::nullptr_t) overload
saves constructing an empty std::shared_ptr
2023-03-27 22:39:10 +02:00
Reinder Feenstra
d4e99e0d51 missing in d53a454ef70ab7c89cc06a1361e93e541e9f86fb 2023-03-26 09:33:12 +02:00
Reinder Feenstra
d53a454ef7 train: added stop and emergency stop 2023-03-26 00:31:38 +01:00
Reinder Feenstra
6c67be1764 train: added isStopped property 2023-03-25 23:46:00 +01:00
Filippo Gentile
89b37d88c8 Train: correctly disable Name property when moving 2023-03-25 13:49:02 +01:00
Reinder Feenstra
edd4cdad26 trayicon: added Advanced submenu with Open data directory option 2023-03-22 23:31:06 +01:00
Reinder Feenstra
f694566f57 trayicon: moved settings to submenu 2023-03-22 23:30:14 +01:00
Reinder Feenstra
1a04b28971 rail vehicle: removed train property
todo: add a train list, a rail vehicle may be in more than one train
2023-03-21 23:06:24 +01:00
Reinder Feenstra
5c8a969a6b train: added smooth acceleration/braking 2023-03-20 23:08:21 +01:00
Reinder Feenstra
77851bbbc3 rail vehicle: added power property
for future physics simulation
2023-03-20 23:01:59 +01:00
Reinder Feenstra
c39b5ad74b loconet: only send speed if changed (to reduce traffic) 2023-03-20 21:36:23 +01:00
Reinder Feenstra
0c8a573497 train: implemented speed and direction control
see #25
2023-03-19 10:01:29 +01:00
Reinder Feenstra
0ba467f380 train: max speed now based on max speed of vehicles
for unpowered vehicles max speed 0 is ignored
power vehicles MUST have a max speed > 0
see #25
2023-03-11 01:01:37 +01:00
Reinder Feenstra
31c80d7981 train: add powered property for testing if the train can move itself, see #25 2023-03-10 00:11:30 +01:00
Reinder Feenstra
a2ed365050 renamed: FreightCar to FreightWagon 2023-03-09 23:49:51 +01:00
Reinder Feenstra
992c6ab988 Merge branch 'master' of github.com:traintastic/traintastic 2023-03-06 23:54:50 +01:00
Reinder Feenstra
f8e6bcaa2f rail vehicle: moved cargo properties to seperate tab 2023-03-06 23:54:00 +01:00
Reinder Feenstra
a60b4e2883 add tank wagon rail vehicle 2023-03-06 23:53:07 +01:00
Reinder Feenstra
6e03b67a08 added volume unit and property 2023-03-06 23:35:39 +01:00
Reinder Feenstra
6b82894abf added multiple unit rail vehicle 2023-03-06 23:28:45 +01:00
Reinder Feenstra
9eba1d3192 added two new base classes powered/unpowered rail vehicle 2023-03-06 16:23:13 +01:00
Reinder Feenstra
2ecfb55c4a
Merge pull request #37 from gfgit/work/double_slip_switch
Add 4 new positions to Double Slip Switch turnout
2023-03-06 11:41:55 +01:00
Reinder Feenstra
648f323106 train: lob and weight are calculated automatically (override is possible) 2023-03-06 00:23:08 +01:00
Reinder Feenstra
b0aa99a8de objectlist: moved property changed to virtual method
so sub classes can do something with it if required
2023-03-06 00:20:50 +01:00
Reinder Feenstra
de34b0553c trainlist: added lob and weigth columns 2023-03-06 00:17:42 +01:00
Reinder Feenstra
2eed611da9 fix: object is empty after move 2023-03-06 00:05:35 +01:00
Reinder Feenstra
27125314a1 fix: object list didn't always register property changed on load 2023-03-05 23:05:07 +01:00
Reinder Feenstra
0c4094b365 implemented add/remove vehicles to a train, see #25 2023-03-05 23:03:54 +01:00
Reinder Feenstra
471db84655 removed restriction to only create/delete trains in edit mode, see #25 2023-03-03 00:03:12 +01: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
4f5e4f2992 fix: set socket options from network thread, see #33 2023-02-21 23:46:57 +01:00
Reinder Feenstra
6e3d2e68fc added version property to Traintastic object 2023-02-19 12:23:34 +01:00
Reinder Feenstra
f7fd18ea1a Merge branch 'master' of github.com:traintastic/traintastic 2023-02-18 23:14:40 +01:00
Reinder Feenstra
5a407e5ba1 fix: socket shutdown and close wasn't called by the io context thread
see #33
2023-02-18 23:14:37 +01:00
Filippo Gentile
2d035b6bac logging: Fix MinGW broken std::put_time()
Workaround missing specifier support in MinGW 12.2.0 by using old pre-C+
+11 specifiers.
2023-02-15 21:32:10 +01:00
Reinder Feenstra
7397cb9e16 Merge branch 'master' of github.com:traintastic/traintastic 2023-02-10 20:36:50 +01:00
Reinder Feenstra
ac9505f1f7 fix: disconnect() not called by the eventloop thread, see #34 2023-02-10 20:36:47 +01:00
Reinder Feenstra
312950c28c
Merge pull request #31 from gfgit/work/object_list_removed
model: HACK to let client refresh after object is removed
2023-02-06 23:23:44 +01:00
Filippo Gentile
54c2dc7c72 model: HACK to let client refresh after object is removed
When an object is removed from a list, Clients need to clear cached
values and reload the model.
This could be more efficient but it will be adressed in a separate pull
request.
2023-02-06 23:17:12 +01:00