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

34 Commits

Author SHA1 Message Date
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
04ca8aca9f Update tests 2024-10-30 16:22:12 +00: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
d49a61645c All objects that can be owned by player now implement IOwnableObject 2024-08-28 12:51:28 +00:00
a481f07daf PlayerState now stores all objects owned by player 2024-08-28 12:51:27 +00:00
0fd9dbf240 Unified income handling, added IOwnableObject interface 2024-08-28 12:40:44 +00:00
11e8b04ac5 Merge pull request #4463 from SoundSSGood/IMarket-refactoring
IMarket refactoring
2024-08-26 22:48:23 +03:00
58bb2b58e3 IMarket suggestions
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2024-08-20 18:49:48 +03:00
b693ce120a code review 2024-08-14 22:36:54 +02:00
39aaa6fe32 data to clipboard; simplify types 2024-08-14 21:01:37 +02:00
81b1704e39 Merge branch 'vcmi:develop' into extended_statistic 2024-08-14 20:32:47 +02:00
ec2163b974 add val; stat at end turn; events 2024-08-14 19:24:40 +02:00
e83a30ea11 darkened; added values 2024-08-14 02:49:54 +02:00
97f1a310df Fix miscellaneous issues discovered by Sonar 2024-08-12 18:26:30 +00:00
37283e51c3 basic diagram 2024-08-12 20:14:36 +02:00
e0ab760a2f code review 2024-08-07 21:26:22 +02:00
611d5daa0f fix missing code + movement points used 2024-08-03 20:47:20 +02:00
eca04cbc54 added 5 values 2024-08-03 19:53:05 +02:00
de128eb471 add dwellings & expirience 2024-08-03 18:48:45 +02:00
9d64059496 code review 2024-08-03 17:55:43 +02:00
f0c0beb9e0 date according to iso8601 2024-08-03 16:39:46 +02:00
58bfd27aad add some stats 2024-08-02 20:40:24 +02:00
b3b7729a6c fix 2024-08-02 20:06:30 +02:00
80dd97364a add additional statistic 2024-08-02 19:38:33 +02:00
9ceb1c567d highscore refactoring 2024-08-02 19:37:46 +02:00
86477c7b04 refactoring + values added 2024-08-02 01:18:39 +02:00
33b2633775 refectoring: remove statsHLP 2024-08-02 00:04:41 +02:00
f695f7038e cleanup 2024-08-01 23:56:06 +02:00
2979bf1976 visitedRatio 2024-08-01 23:21:41 +02:00
380d5bb05b refactoring & expanding 2024-08-01 22:36:32 +02:00
490f1bfee6 rework 2024-08-01 21:36:00 +02:00
fb171ab3a2 statisic basic 2024-08-01 21:36:00 +02:00