1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00
Commit Graph

31 Commits

Author SHA1 Message Date
6b8f94e6e7 Merge remote-tracking branch 'vcmi/master' into develop 2024-07-11 17:43:44 +00:00
6300473ff8 Block AI from acting at the same time as guest-human during simturns 2024-07-08 20:57:47 +00:00
02e429e973 Fix typos using https://github.com/crate-ci/typos
Changes were reviewed manually
2024-06-24 03:47:19 +02:00
2ff28f6957 Merge pull request #4018 from IvanSavenko/voting
[1.5.2?] Multiplayer voting
2024-05-29 18:13:42 +03:00
215b279ea8 Contact between allies will no longer break simturns 2024-05-19 20:18:14 +00:00
e04c662bc9 Owned object in range of enemy heroes now break simturns 2024-05-19 20:03:24 +00:00
10b50cd905 It is now possible to vote for simturns and turn timer changes 2024-05-19 18:31:32 +00:00
5010344df0 Added serialization of turn timer handler 2024-04-26 13:16:02 +03:00
2c2bec791c Fixes and cleanup of game client network shutdown and restart 2024-02-03 19:27:04 +02:00
45a3d04d25 Fix simturns termination check 2024-01-13 23:23:36 +02:00
8303ce5d13 Added option to ignore guards in pathfinder
Used for simturns contact detection, by default disabled for player
pathfinding
2024-01-13 19:44:37 +02:00
cd526a5e15 Send notifications when simultaneous turns end 2023-12-23 18:11:25 +02:00
a3adfcf7a7 Do not attempt to start a new turn on game end 2023-12-13 16:53:02 +02:00
80b82cc026 Remove invalid assert - may trigger on human player defeat 2023-12-03 15:58:23 +02:00
18c0217679 Relaxed ordering requirements - player can start turn even if players
before him are waiting to act. E.g. green can start turn even if blue
and red are in contact and blue is yet to start his turn
2023-11-09 00:08:13 +02:00
b88a8da4e8 Split off some netpack structures into separate files 2023-10-23 13:59:15 +03:00
d7d435dcb7 Add game pause 2023-10-08 16:03:57 +02:00
5b21a5ffbc Simturn duration is now part of StartInfo 2023-09-26 13:42:20 +03:00
a9dbd08dec Compute player contacts only once on turn start 2023-09-26 13:42:20 +03:00
623fb2a63e Do not allow visiting objects blocked by visit of another player 2023-09-26 13:42:20 +03:00
541f7590c5 Add simple detection of player-player contact 2023-09-26 13:42:20 +03:00
64c43c91dc Added hardcoded min/max simturns duration 2023-09-26 13:42:20 +03:00
b2f30f78fa Allow one AI and human to act simultaneously 2023-09-26 13:42:20 +03:00
219f81d28b Added explicit "PlayerEndsTurn" netpack
- PlayerEndsTurn pack is now sent when player ends turn
- YourTurn pack has been renamed to PlayerStartsTurn for consistency
- PlayerStartsTurn will no longer replace list of acting players
- PlayerEndsGame and PlayerEndsTurn will remove player from acting list
2023-09-18 20:55:01 +03:00
98f7ed9dfd Implement player start turn query 2023-08-28 18:56:36 +04:00
edd029c79c Replace "currentPlayer" from gamestate with "activePlayers"
- Allows multiple active players at once, e.g. simturns
- Cleared up validation of netpacks by server, e.g. always check for
pack sender
2023-08-25 18:56:15 +03:00
940bdcee3e Fixes according to review 2023-08-24 23:34:33 +03:00
f9410145d6 Fix handling of "7 days without town" loss condition 2023-08-24 23:34:33 +03:00
a19cdb57ba Fix handling of turn order in case of player defeat 2023-08-24 23:34:33 +03:00
d83aa828f6 Fix turn ending 2023-08-24 23:34:33 +03:00
c4bc6840ea Moved management of turn order into a new class 2023-08-24 23:34:33 +03:00