cbcd48aabb
Fix build
2025-02-21 18:51:27 +00:00
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
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
2362c6da21
Fixes for multiple new issues from Sonar
2025-02-21 15:57:39 +00:00
668bf63fc0
Remove access to internal surface of Canvas
2025-01-21 21:15:21 +00:00
6d8e447ff3
Added new right-click popup to teleporters
...
Whirlpool, Subterranean Gates, and all Monoliths now show custom popup
on right-click that show all linked objects (exits and entrances).
Only revealed objects are visible, rest are hidden behind fow.
Exits, entrances, and bidirectional objects have different icon that
indicates direction.
2024-12-21 12:01:33 +00:00
08fbcd5239
TerrainTile now uses identifiers instead of pointers to VLC
2024-10-30 16:22:11 +00:00
748a3a1b64
Fixed minimap generation when upscaled mode is used
2024-08-17 15:25:26 +00:00
9fba3d97f1
Renamed & unified OBJECT_CONSTRUCTION macro set
2024-08-09 15:30:04 +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
02e429e973
Fix typos using https://github.com/crate-ci/typos
...
Changes were reviewed manually
2024-06-24 03:47:19 +02:00
737525756f
fix redraw
2023-10-21 17:28:23 +02:00
e03f2a9d3a
improvements for non quadratic maps
2023-10-21 16:49:50 +02:00
823ffa7a07
Always use ResourcePath for referencing images and animations
2023-09-04 18:22:34 +03:00
ce20d913e0
Fix checking PlayerColor's for validness
2023-08-27 01:35:38 +03:00
43795c39a5
Replaced all usage of SDL_Color outside of render with ColorRGBA
2023-07-31 21:07:30 +03:00
ca889a5c2a
Replaced clickLeft with clickPressed clickReleased methods
2023-07-08 14:33:04 +03:00
4e80356bea
Do not hide minimap on human player turn
2023-07-03 19:36:10 +03:00
4e7412faa6
Split mouseDragged event from mouseMoved
2023-06-22 22:11:48 +03:00
06437cbde6
Renamed gesture-related methods, remove unused code
2023-06-20 19:58:05 +03:00
563d7dd41f
Renamed RCLICK -> SHOW_POPUP
2023-06-20 19:58:05 +03:00
8ad577255f
Replaced isMouseButtonPressed with isMouseLeftButtonPressed
2023-06-20 19:58:05 +03:00
d4aa778547
Replaced clickRight event with showPopupWindow/closePopupWindow
2023-06-20 19:58:05 +03:00
db1045aecd
Fix panning limits for minimap
2023-06-05 19:20:08 +03:00
e6e91c64b6
Implemented minimap panning gesture
2023-06-05 19:20:08 +03:00
8ea0ecaec1
show/showAll methods now use Canvas instead of SDL_Surface
...
- added compatibility method to Canvas to allow SDL_Surface access
- added drawBorder method to Canvas to replace CSDL_Ext method
- added drawColor method to Canvas to replace CSDL_Ext method
- minor changes to Tavern and Trade windows to adapt to new API
2023-06-02 16:42:18 +03:00
f4d67fe675
Restore SDL_main in CMT.cpp
2023-05-20 01:51:49 +03:00
0e70f2998f
SDL event handling is now done exclusively in input handler
2023-05-20 01:51:49 +03:00
1f513fd280
Extracted event management from GuiHandler and CIntObject
2023-05-20 01:51:49 +03:00
ad3e54e6c0
Reduced usage of topWindow() method
2023-05-16 21:57:45 +03:00
7838190ef4
Moved window stack management from GuiHandler to new class
2023-05-16 19:10:21 +03:00
243773b6ef
Renamed some adventure map files & classes
2023-05-09 13:10:33 +03:00
80b37a3019
Fixed remaining regressions
2023-04-20 22:19:10 +03:00
4a169972f0
Further refactoring to cleanup code of advmap and locplint
2023-04-20 22:04:24 +03:00
7db67a3101
int3 now has proper hasher function
2023-04-20 22:04:24 +03:00
4ec32e4dcd
Renamed CAdvMapInt to its proper full name
2023-04-20 22:04:24 +03:00
c81d57ab8c
Remove excessive totalRedraw's
2023-03-22 00:57:08 +02:00
21407b26dd
Fix minimap redraw on fow reveal
2023-03-16 18:36:31 +02:00
45e2875342
Completely removed old TerrainRect class
2023-03-05 17:57:36 +02:00
d46687a9c8
Partial implementation of world view mode
2023-03-05 17:48:02 +02:00
bb6e1f7ee1
Initial WIP of adventure map rendering rewrite
2023-03-05 17:47:12 +02:00
91b17bed79
Partial encapsulation of AdvMapInt
2023-02-14 11:18:42 +02:00
cc0c3e5bc9
All adventure map components now use shared_ptr
2023-02-14 11:18:41 +02:00
d0f57fed6f
Cleaned up code of Minimap
2023-02-14 11:18:41 +02:00
3fef2a5e1f
Moved Colors to a separate file, updated includes
2023-02-03 11:39:40 +02:00
860fe43131
Merged two mouse button enums
2023-02-03 11:39:40 +02:00
214fc19e74
CIntObject now receives mouse position as point instead of SDL event
2023-02-03 11:39:39 +02:00
108a42e4ba
Reorganized includes for new layout. New class - IImageLoader
2023-02-01 20:42:06 +02:00