Commit Graph

70 Commits

Author SHA1 Message Date
Valentino Orlandi 8c179a05ce
Fix 2024-02-16 23:35:54 +01:00
Valentino Orlandi 8955ab939b
Improved exceptions 2024-02-09 21:09:42 +01:00
Valentino Orlandi 7265d082b0
Improvements
Improved stylesheets creation
2024-02-05 20:56:23 +01:00
Valentino Orlandi b48703cf3a
Improvements
Improved code and memory safety for snake game
2024-01-21 20:18:48 +01:00
Valentino Orlandi e9977b8ca3
Code improvements
Added noexcept specifier to all the functions which are not supposed to
throw and/or which eventual exception is not catched anyway
2024-01-21 19:25:11 +01:00
Valentino Orlandi e88625b5bf
Minor code improvements
Added final specifier to all structs and classes
2024-01-21 16:35:00 +01:00
Valentino Orlandi d910069a1b
Minor code improvements
Replaced use of postfix operators with prefix operators.
Replaced manual declarations with Q_DISABLE_COPY_MOVE macro for
FileHandler classes.
2024-01-21 16:05:23 +01:00
Valentino Orlandi 82fb24f98f
Fix
Fix for clang complaining about missing unordered_map headers
2023-10-10 20:22:36 +02:00
Valentino Orlandi 103d46f206
Improvements and fixes
Code improvements.
Fixed compiler warnings.
2023-09-24 20:50:10 +02:00
Valentino Orlandi b476a2d074
Fixed compilers warnings 2023-09-16 20:28:27 +02:00
Valentino Orlandi de80ad20b8
Code improvements 2023-09-16 17:08:27 +02:00
Valentino Orlandi e37f15459c
Code improvements
Improved include guards
2023-09-16 14:09:21 +02:00
Valentino Orlandi 6a8877e3be
Added stylesheets to the dialogs 2023-09-10 18:54:19 +02:00
Valentino Orlandi c6aaf88b6f
Introduced GameDialog for games
Moved out from DialogMsg.
Removed Game variant from MsgType enum in DialogMsg.
2023-09-10 16:22:27 +02:00
Valentino Orlandi fe9fd2faa9
Moved themes variables to GlobalConfigs namespace 2023-09-09 22:24:54 +02:00
Valentino Orlandi 33b30a7ca1
Introduced use of custom dialogs in games
Added Game variant to MsgType
2023-09-09 19:44:14 +02:00
Valentino Orlandi 020d2d533f
Code improvements 2023-09-09 18:59:43 +02:00
Valentino Orlandi 4f98cb5db8
Improvements
Morphed Ui raw pointers into smart pointers.
Removed unnecessary destructors.
2023-08-27 18:49:34 +02:00
Valentino Orlandi d05ea9a15c
Improvements 2023-08-27 18:23:16 +02:00
Valentino Orlandi df2f24e4ee
Improvements
Moved the various getStyleSheet to separate files and placed in
dedicated namespaces inside StyleSec
2023-08-27 17:02:06 +02:00
Valentino Orlandi b7eb8423d9
Update
Updated some comments
2023-08-27 11:01:37 +02:00
Valentino Orlandi 3062547c08
Fix
Fixed snake game crash when closing from menu screen
2023-08-27 10:59:27 +02:00
Valentino Orlandi c560328b98
Code improvements
Refactored stylesheet maps with enums as keys to allow compile-time
checks
2023-08-27 10:54:07 +02:00
Valentino Orlandi 3a0b7bcc45
Update ui files 2023-08-26 17:40:35 +02:00
Valentino Orlandi e6ae3edc58
Restyled light/dark themes 2023-08-26 16:51:30 +02:00
Valentino Orlandi 581c096876
Renamed themes
None -> Native
Powder -> Light
Ash -> Dark
2023-08-04 19:58:11 +02:00
Valentino Orlandi c0526482df
Removed Herb and Candy themes 2023-08-04 19:51:37 +02:00
Valentino Orlandi 4cac5f1361
Fixed OSX compilation issues 2023-07-23 18:16:44 +02:00
Valentino Orlandi d8feeb9c7b
Code improvements 2023-07-23 16:47:14 +02:00
Valentino Orlandi 21d16f8267
Performance improvements
Morphed Snake game internal std::function(s) to pure lambdas
2023-07-23 14:59:49 +02:00
Valentino Orlandi b045b57851
Fixed OSX compilation issues 2023-04-23 11:03:04 +02:00
Valentino Orlandi 19df5598fb
Code improvements 2023-04-11 23:14:24 +02:00
Valentino Orlandi 49d59fe70c
Improvements and updates
Code improvements.
Craplog's lib relative updates.
Replaced raw pointers with smart pointers.
Replaced raw loops with STL algorithms.
Moved members variables initialization to initialization lists.
2023-02-11 20:41:43 +01:00
Valentino Orlandi f946f96fdf
Improvements
Added copy-constructor and operator=
2023-01-27 02:02:57 +01:00
Valentino Orlandi 9e87951349
Code improvements
Updated Qt connect syntax
2023-01-23 22:02:55 +01:00
Valentino Orlandi 73f4512a45
Code improvements 2023-01-23 19:07:24 +01:00
Valentino Orlandi d5a5681ef5
Fixed assertion failure on some systems 2022-12-06 21:28:56 +01:00
Valentino Orlandi f1c276eb41
Fixed rat moving on the tail of the snake 2022-12-06 21:27:19 +01:00
Valentino Orlandi 898ae3b20a
Code improvements
Fixed the override warning
2022-12-04 19:26:07 +01:00
Valentino Orlandi b0284565e4
Fixed dialogs messages 2022-12-03 17:25:01 +01:00
Valentino Orlandi 9d4a57d98e
AI improvements
Weights adjustments.
Improved data collection performances to speed-up decisions.
2022-12-01 18:33:55 +01:00
Valentino Orlandi 89ee0ecd5b
Improvements and updates 2022-11-28 00:07:31 +01:00
Valentino Orlandi 4453038675
Update 2022-11-28 00:06:10 +01:00
Valentino Orlandi a191ea672b
Improvements
Improved game logics.
Improved AI decision algorithm.
2022-11-28 00:05:27 +01:00
Valentino Orlandi 83c1be52a5
Improvements 2022-11-27 23:53:35 +01:00
Valentino Orlandi a8915d1971
Fix 2022-11-27 23:53:00 +01:00
Valentino Orlandi ec406b9ad7
Fix 2022-11-27 23:52:06 +01:00
Valentino Orlandi 82adc2e083
Fixed Snake game translations 2022-11-24 22:55:50 +01:00
Valentino Orlandi 4cc294874a
Updated games stylesheets 2022-11-24 22:29:17 +01:00
Valentino Orlandi 20af10d29f
Improvements and updates
Updated Snake game includes and resources.
Moved 'Snake' and 'Food' structs in class files.
Added new game modes: Hunt and Battle.
Updated UI.
2022-11-24 22:25:16 +01:00