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

160 Commits

Author SHA1 Message Date
645b95ba02 Renamed LibClasses * VLC to GameLibrary * LIBRARY 2025-02-21 16:54:56 +00:00
156de5b17e Added GameInstance class
- available as global GAME
- integrates LOCPLINT (CPlayerInterface)
- integrates CGI->mh (CMapHandler)
- integrates CSH (CServerHandler)
2025-02-21 16:54:06 +00:00
ffd37a8fa8 Removed CGI in favor of VLC. Map handle is for now global variable 2025-02-21 16:53:14 +00:00
f657e85305 Integrated CClientState into GameEngine class 2025-02-21 16:53:14 +00:00
cacceda950 Renamed CGuiHandler to GameEngine
- class CGuiHandler is now called GameEngine to better describe its
functionality
- renamed global GH to more clear ENGINE
- GH/ENGINE is now unique_ptr to make construction / deconstruction
order more clear and to allow interface / implementation split
- CGuiHandler.cpp/h is now called GameEngine.cpp/h and located in root
directory of client dir
2025-02-21 16:53:13 +00:00
4b824d05e2 Do not allow heroes banned for player as starting heroes
- `disposedHeroes` is now in map header, for use in map selection
- heroes that are marked as unavailable for player will now be hidden
from starting hero selection
2025-02-14 10:43:55 +00:00
4b20128144 Close hero overview before recreating advanced options dialog 2025-02-01 18:10:22 +00:00
51ceb068a7 Try to handle crash on map selection screen 2025-01-01 21:00:25 +00:00
ca037aae33 notFocusedClick refactoring 2024-11-03 01:13:14 +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
9e67e9616b Center "Human or CPU" 2024-10-07 19:05:07 +02:00
a168b3aeaa remove unused var 2024-10-07 18:49:55 +02:00
cc480e6e46 textsize and textposition in OptionsTab 2024-10-07 18:20:18 +02:00
fecfdd7056 Fix centering of multi-line labels 2024-09-28 19:30:50 +00:00
248cff49a4 Moved fonts handling from Graphics to RenderHandler class 2024-09-23 15:43:11 +00:00
915533ed2e Implemented generation of player-colored version of DiBoxBck 2024-09-12 21:22:41 +00:00
97f1a310df Fix miscellaneous issues discovered by Sonar 2024-08-12 18:26:30 +00:00
9fba3d97f1 Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
00605b5129 Remove largely unused defActions member from CIntObject 2024-08-09 14:26:53 +00:00
a8fe8cbcf0 adjust text; increase gold input size 2024-07-29 23:48:00 +02:00
3e5df61946 code review 2024-07-29 22:54:42 +02:00
6adc49b814 add help text 2024-07-29 00:54:58 +02:00
ec005593d3 growth handicap 2024-07-25 23:04:59 +02:00
bfd1e8a7c8 calculate income 2024-07-25 02:51:00 +02:00
63b8ac1a58 fix 2024-07-25 00:45:52 +02:00
d7ffc6ad3e cleanup 2024-07-25 00:28:49 +02:00
d54dfe4508 gui improvements 2024-07-25 00:28:49 +02:00
dc54261574 set handicap 2024-07-25 00:28:49 +02:00
5310f94e99 gui input 2024-07-25 00:28:49 +02:00
2b7e42004f basic gui 2024-07-25 00:28:49 +02:00
268e0c8c44 change data structure 2024-07-25 00:28:49 +02:00
48eacbf830 handicap percent 2024-07-25 00:28:49 +02:00
97f49030d2 fix 2024-07-25 00:28:49 +02:00
af2b6a0051 show handicap resources 2024-07-25 00:28:49 +02:00
8edf77afcc basic handicap support 2024-07-25 00:28:01 +02:00
4aa73b40c9 Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
1aa391fdf8 Split CGeneralTextHandler file into 1 file per class form
All text processing code is now located in lib/texts.
No changes other than code being moved around and adjustment of includes

Moved without changes:
Languages.h           -> texts/Languages.h
MetaString.*          -> texts/MetaString.*
TextOperations.*      -> texts/TextOperations.*

Split into parts:
CGeneralTextHandler.* -> texts/CGeneralTextHandler.*
                      -> texts/CLegacyConfigParser.*
                      -> texts/TextLocalizationContainer.*
                      -> texts/TextIdentifier.h
2024-07-20 12:55:17 +00:00
920a39844b Unified naming of method to recolor UI element to current player scheme 2024-07-19 10:08:50 +00:00
8b1c038415 fix 2024-07-06 23:57:08 +02:00
81574138c7 show only used fields 2024-07-06 23:22:40 +02:00
37c783b7c1 code review 2024-07-06 22:55:56 +02:00
da83f5dc3b fix if only one line 2024-07-06 13:04:00 +02:00
301da0b75a fix for multiplayer 2024-07-06 13:04:00 +02:00
27dd00f8ce remember slider location 2024-07-06 13:04:00 +02:00
684a9519b6 max columns 2024-07-06 13:04:00 +02:00
b3f0bf1e1d finish slider 2024-07-06 13:04:00 +02:00
29d4cf274a basic slider 2024-07-06 13:04:00 +02:00
adc3441bda Merge pull request #3998 from IvanSavenko/refactor_sdl_media
[1.6] Reorganize SDL sound/music/video handling
2024-05-31 12:02:55 +03:00
7461df161c lib now uses shared_ptr for entities. Removed manual memory management. 2024-05-17 15:04:05 +00:00
d27b854cb1 Reorganized music, video and sound players:
- All XXXplayers are now in client/media directory
- Reogranized code on one class per file basis
- Extracted interfaces from handlers. Handlers now implement
corresponding interface.
- CCS now only stores pointer to an interface
2024-05-15 17:05:12 +00:00