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

68 Commits

Author SHA1 Message Date
aa9b13b66a Statistics is now managed as part of CGameHandler 2025-05-23 14:17:42 +03:00
8255a4b9ae CGameHandler no longer inherits CGameInfoCallback, reduce direct access
to gamestate
2025-05-23 14:17:25 +03:00
456525109e Replaced undescriptive bool true/false with more clear enum for
absolute/relative change via netpacks
2025-05-16 17:21:39 +03:00
700eeb6bd4 Implemented HERO_SPELL_CASTS_PER_COMBAT_TURN bonus 2025-05-08 00:25:07 +03:00
f70ad2c15b Reorganized artifact-related classes
- files now generally contain only 1 class (except for tightly coupled
classes)
- files are now located in lib/entities/artifact directory
- removed excessive includes

No changes to functionality
2025-04-29 13:29:08 +03:00
4e8e85e3e4 Fix issues reported by Sonar, review fixes 2025-04-27 14:57:31 +03:00
4d57a8ed36 Prefer to pass CGameState as reference instead of pointer 2025-04-27 14:57:31 +03:00
bdae7285ae Objects list is now private member of CMap 2025-04-27 14:57:30 +03:00
417ea6451a Remove ConstTransitivePtr from hero and town instances 2025-04-27 14:57:30 +03:00
62cb5412ff CGameState::map is now a private, unique_ptr with accessors 2025-03-08 14:05:14 +00:00
82506d5eff Removed ConstTransitivePtr from StackLocation 2025-03-08 14:04:51 +00:00
2fdf40e7a9 Remove connection pointer from CPack 2025-03-03 10:46:00 +00:00
645b95ba02 Renamed LibClasses * VLC to GameLibrary * LIBRARY 2025-02-21 16:54:56 +00:00
9f56c00336 Reduce excessive FoW updates 2025-01-08 20:07:42 +00:00
6af8b62dfd more strings; camelcase 2024-12-01 18:48:09 +01:00
78e933a968 add broadcast to translation 2024-12-01 18:29:07 +01:00
10ad0fc760 Split CHeroHandler.cpp/.h into 1 file per class
All parts of CHeroHandler.cpp are now in lib/entities/hero
Adjusted includes to use new paths
No functionality changes
2024-10-13 14:01:09 +00:00
3dd4fa2528 Reduce usage of pointers to VLC entities
Final goal (of multiple PR's) is to remove all remaining pointers from
serializeable game state, and replace them with either identifiers or
with shared/unique pointers.

CGTownInstance::town and CGHeroInstance::type members have been removed.
Now this data is computed dynamically using subID member.

VLC entity of a town can now be accessed via following methods:
- getFactionID() returns ID of a faction
- getFaction() returns pointer to a faction
- getTown() returns pointer to a town

VLC entity of a hero can now be accessed via following methods:
- getHeroTypeID() returns ID of a hero
- getHeroClassID() returns ID of a hero class
- getHeroType() returns pointer to a hero
- getHeroClass() returns pointer to a hero class
2024-10-10 12:28:08 +00:00
c0f5c7c0ea Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
cc6d6b0d63 Replaced unique_ptr with simple references to packs 2024-10-07 14:59:14 +00:00
7466d7452d vcmiscrolls 2024-09-05 15:51:45 +03:00
a481f07daf PlayerState now stores all objects owned by player 2024-08-28 12:51:27 +00:00
37283e51c3 basic diagram 2024-08-12 20:14:36 +02:00
490f1bfee6 rework 2024-08-01 21:36:00 +02:00
4aa73b40c9 Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
df83fa33a1 Merge branch 'vcmi/master' into 'vcmi/develop' 2024-05-31 09:34:21 +00:00
5ecb527252 Merge pull request #3997 from IvanSavenko/serialization_refactor
[1.6] Serialization refactor
2024-05-30 19:13:21 +03:00
10b50cd905 It is now possible to vote for simturns and turn timer changes 2024-05-19 18:31:32 +00:00
84bc6c42db Added 'Serializeable' base class for classes serializeable by pointer 2024-05-16 18:40:59 +00:00
2521557f68 Fixed some newly reported issues from SonarCloud 2024-05-10 13:40:24 +00:00
1f209fd94a use MetaString 2024-05-02 21:03:23 +02:00
b9c4a56360 translate also cheater message 2024-05-01 16:06:34 +02:00
a99d5e6fa1 Simplify code 2024-04-26 12:44:57 +03:00
f14aec5876 Trim cheats so 'vcmiartifacts ' will be recognized as single-word cheat 2024-04-09 17:08:24 +03:00
fc4ae3bd8c Merge remote-tracking branch 'vcmi/develop' into lobby 2024-01-20 23:01:49 +02:00
0a1153e1c6 Switch client-server communication to new API 2024-01-19 23:49:59 +02:00
d5c4478816 Remove most of non-const access to VLC entities 2024-01-19 13:54:49 +02:00
bd5682ecc3 Merge remote-tracking branch 'vcmi/master' into develop 2024-01-19 13:49:54 +02:00
cca08e29da Remove duplicate semicolons 2024-01-16 19:02:39 +00:00
4e69853ca8 vcmiobelisk bugfix 2024-01-13 16:05:12 +01:00
edb2ecd751 Fix possible overflow errors on leveling up beyond int64_t limit
- added separate giveExperience method instead of weird changePrimSkill
- experience is now always used in form of int64_t
- max supported level reduced from 201 to 197 to fit into int64_t
- fixed undefined behavior in experience calculation
2024-01-04 23:57:36 +02:00
cb9c4bbaf0 unlimited replay option 2023-12-28 20:48:19 +01:00
fc4827c89c option for allowing cheats 2023-12-27 14:39:35 +01:00
a001f4e407 Fix crash on reveal puzzle cheat 2023-12-24 19:29:33 +02:00
22a6eff28f add alias 2023-12-09 15:07:27 +01:00
a24e78a210 real unlimited movement (like in OH3) 2023-12-09 13:42:09 +01:00
584bb32f53 add nwctheone 2023-12-09 00:44:53 +01:00
d58c99b47d flag all team members as cheaters 2023-12-08 20:13:32 +01:00
1cfbe66460 fix crash if no hero is selected 2023-12-08 19:37:34 +01:00
4bad88f141 implement luck and morale cheats from OH3 2023-12-08 19:20:53 +01:00