52050d0ef1
Fix build
2023-11-15 15:55:19 +02:00
6cb1f6ff11
Remove all remaining implicit conversion in lib
2023-11-15 15:55:19 +02:00
96c81be68e
Win/loss conditions now use VariantIdentifier. Removed non-implemented
...
options
2023-11-15 15:55:19 +02:00
abad4b01ce
Remove explicit convesion to int in operators
2023-11-15 15:55:19 +02:00
0842f5afee
Removed remaining usages of std::vector<bool>
2023-11-15 15:55:18 +02:00
d4496c81f9
Fix memory leaks in library
2023-11-13 16:27:15 +02:00
20ef3a69e7
Fix most of memleaks discovered by valgrind
2023-11-13 16:27:15 +02:00
142d0083d5
#3173 - fix trap crash on random hero
2023-11-12 16:14:06 +02:00
5c810df36f
Reorganized types registration code
2023-11-11 00:39:08 +02:00
4a7fa9bf8c
Simplified CTypeList class
2023-11-08 22:05:36 +02:00
ed66fc2fb3
Minor optimization of map startup time
2023-11-08 21:27:05 +02:00
0691dfef3b
Moved stateful artifact randomization logic to gamestate from handler
2023-11-08 21:27:05 +02:00
5487f07d3b
added toEntity overload that accepts generic Services class
2023-11-04 17:04:53 +02:00
04aeea9b68
use toEnum instead of getNum for switch'es
2023-11-03 19:20:25 +02:00
184f5a72cc
Use toEntity/toXXX methods in Identifier instead VLC objects access
2023-11-03 16:03:29 +02:00
8d5fa41a19
Minor fixes
2023-11-03 16:03:29 +02:00
2b9c362d5b
Explicitly convert identifier to underlying enumeration
2023-11-03 16:03:29 +02:00
b42f073f0c
Stabilization
2023-11-01 18:26:57 +02:00
8346d71c98
Remove more subID access
2023-11-01 14:44:05 +02:00
5cdbf408c7
Slightly simplified heroes initialization
2023-11-01 14:43:20 +02:00
461c481ef3
Fix game startup
2023-11-01 14:43:20 +02:00
cc30bdda04
Remove few more subID usages
2023-11-01 14:43:20 +02:00
7a09646009
Cleaned up dwelling randomization
2023-11-01 14:43:20 +02:00
dcb8f4fc7b
Moved object type randomization to object class
2023-11-01 14:43:20 +02:00
03e1169781
Reduced number of accesses to CGObjectInstance::subID
2023-11-01 14:43:20 +02:00
7107b3202f
Merge pull request #3069 from SoundSSGood/artifact-location-id
...
ArtifactLocation now use ID for artHolder identification
2023-11-01 14:41:36 +02:00
caffc8f3cd
Merge pull request #3122 from vcmi/fix-2993
...
#2993 - destruct battle info first when destructing CGameState
2023-10-31 21:43:55 +02:00
25b64dd08b
Update lib/gameState/CGameState.cpp
...
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com >
2023-10-31 21:43:06 +02:00
ab2f6abb87
ArtifactLocation now use ID for artHolder identification part2
2023-10-29 17:46:13 +02:00
4d6d64837f
#2993 - destruct battle info first when destruction CGameState
2023-10-29 09:41:22 +02:00
f01ec55d21
Use the "nullptr" literal.
...
"nullptr" should be used to denote the null pointer
2023-10-27 18:18:59 +00:00
ac925bb786
Renamed new types for consistency with code style
2023-10-22 16:55:19 +03:00
80e6485965
MetaIdentifier now uses std::variant internally
2023-10-22 16:55:19 +03:00
b394158dc9
Bonus Source ID now uses metaidentifier
2023-10-22 16:55:18 +03:00
0a10fc30b8
(lib) Bonus subtype is now stored as metaidentifier that can store any
...
other identifier inside it
2023-10-22 16:54:43 +03:00
454ba44ac5
Merge pull request #2988 from IvanSavenko/configurable_extensions
...
Extension of configurable object functionality
2023-10-22 16:24:47 +03:00
0eba0ee686
show random maps
2023-10-21 02:12:34 +02:00
dd841bdaa7
Use enum instead of mix of bool's and int's for tile reveal
2023-10-16 00:12:38 +03:00
037efdf5fc
Improvements to type safety of Identifier class
...
- Constructor of Identifier from integer is now explicit
- Lobby hero/town selection now uses Identifiers instead of int's
- Removed serialization workaround for hero portraits
- Added dummy objects for custom heroes portraits for ID resolver to use
- HeroInstance now stores portrait ID only in case of custom portrait
- Fixed loading of campaign heroes portraits on RoE maps
2023-10-04 18:05:23 +03:00
0c94a4d891
Town name switched to id
2023-09-27 23:57:05 +02:00
5b24fe289b
Assembling difficulty json instead of overriding
2023-09-22 14:46:43 +02:00
099109b7d2
Minor fixes
2023-09-22 00:52:19 +02:00
cb3bbc6680
Restructured difficulty config
2023-09-20 16:12:26 +02:00
0de912e67b
Add basic system to add more advantages for ai player
2023-09-20 03:50:35 +02:00
f8541d0ae4
Merge branch 'vcmi/master' into 'vcmi/develop'
2023-09-15 13:59:02 +03:00
cc3864a0fa
Fix for random dwellings
2023-09-09 21:17:21 +02:00
f39fbe5151
Merge pull request #2757 from IvanSavenko/filesystem_refactor
...
Filesystem refactor - part 1
2023-09-07 10:51:02 +03:00
fc4dfda00f
Added support for concurrent battles to gamestate and server
2023-09-06 16:03:02 +03:00
86a7f5f5cd
Removed getStr(bool), replaced with similar toString()
2023-09-04 22:21:02 +03:00
6f0108e462
Use ResourcePath for referencing texts and json's
2023-09-04 18:22:34 +03:00