Commit Graph
38 Commits
Author SHA1 Message Date
Tomasz Zieliński b20f649521 stash 2022-09-19 16:13:58 +02:00
DjWarmongerandGitHub 7ba271edf1 Rotation rebase2 (#912)
* Instead of [x][y][z] coordinates, map will be stored as [z][x][y].
* Nullkiller AI can get it too.
* Use boost::multi_array instead of nested vectors
* In MapHandler too
* Rotate foreach algorithms, too
* VCAI gets rotated, too
2022-09-18 17:39:10 +03:00
DjWarmongerandGitHub d34dd8676e Merge pull request #898 from vcmi/cache-pathfinding
Cache pathfinding
2022-09-14 20:32:54 +02:00
5e2d87abd7 Update AI/Nullkiller/Goals/ExecuteHeroChain.cpp
Co-authored-by: Andrey Filipenkov <decapitator@ukr.net>
2022-09-14 16:23:13 +02:00
Tomasz Zieliński 931f4af2df typo 2022-09-14 15:24:39 +02:00
Tomasz Zieliński 77e43cb36f Cache Pathfinding skill 2022-09-14 15:24:24 +02:00
DjWarmongerandGitHub 627b63ca56 Merge pull request #894 from vcmi/optimization_rebase
Bonus and string optimization
2022-09-14 13:03:30 +02:00
Tomasz Zieliński 55b142a8c9 Suggested tweaks 2022-09-14 11:37:12 +02:00
Tomasz Zieliński d0f857c3c4 - Generate caching string with sprintf
- Reserve BonusList space to avoid costly vector reallocation
- Tweaks in int3 and UNDEAD bonus
2022-09-14 11:00:40 +02:00
DjWarmongerandAndrii Danylchenko 3d2dc2335b Switch ObjectTemplate to shared_ptr<const> (#870) 2022-09-11 16:13:53 +03:00
Tomasz ZielińskiandAndrii Danylchenko 40585a66c0 Style, commend - requested 2022-09-11 11:31:28 +03:00
Tomasz ZielińskiandAndrii Danylchenko 22b4795f86 Well, we should have some sensible exception handling in VCMI 2022-09-11 11:31:28 +03:00
Tomasz ZielińskiandAndrii Danylchenko 1649cf2bb9 misc comments 2022-09-11 11:31:27 +03:00
Tomasz ZielińskiandAndrii Danylchenko 6ae3b77d80 AI will not wait to conwuer fort if possible 2022-09-11 11:31:27 +03:00
Tomasz ZielińskiandAndrii Danylchenko f0bb97b0d2 AI will actually attack all heroes when possible - and win the game eventually :) 2022-09-11 11:31:27 +03:00
Tomasz ZielińskiandAndrii Danylchenko 6fb7301e8e Fixed issue with taking creatures from a Bank, Pandora or joiners 2022-09-11 11:31:27 +03:00
Tomasz ZielińskiandAndrii Danylchenko b52faad4c7 + Stack speed is valuable
+ Hero movement is also very valuable
2022-09-11 11:31:27 +03:00
Tomasz ZielińskiandAndrii Danylchenko efb6580958 Fix for mislaced hero rescued from Prison - https://bugs.vcmi.eu/view.php?id=3227 2022-09-11 11:31:27 +03:00
Tomasz ZielińskiandAndrii Danylchenko a83753a7d2 AI will now pick Prisons if possible 2022-09-11 11:31:27 +03:00
Tomasz ZielińskiandAndrii Danylchenko cbf2a1b7cc AI will consider Pandora Box as a valuable object - good for every occasion! 2022-09-11 11:31:27 +03:00
Tomasz ZielińskiandAndrii Danylchenko faa6ca401e Fixed duplicated value 2022-09-11 11:31:27 +03:00
Tomasz ZielińskiandAndrii Danylchenko f4de5453c6 + AI will consider free slot (or lack of it) for creature reward from a bank
+ AI might use banks for resources other than gold
2022-09-11 11:31:27 +03:00
DjWarmongerandAndrii Danylchenko f81d869b4a Mine roads (#808)
* Create dirt roads to mines if there are no roads in a zone.
2022-09-11 11:31:27 +03:00
DjWarmongerandGitHub 3fd8faf41b Merge pull request #614 from vcmi/Launcher_GUI_fixes
Hmm.. it looks like it works for me.
2019-10-14 18:21:28 +02:00
DjWarmongerandGitHub 7e7c98852d Merge pull request #613 from vcmi/dydzio0614-patch-1
Lol, it's been in "TODO" for years now :P
2019-07-21 11:46:21 +02:00
DjWarmongerandGitHub efc53e8f8b Merge pull request #530 from dydzio0614/objRemovalFix
Extend objectRemoved callback to check parent goals and resource manager
2019-01-07 19:00:06 +01:00
DjWarmongerandGitHub 2b6bb0f4c6 Merge pull request #481 from vcmi/VCAI_fixes
Vcai fixes
2018-08-22 10:41:12 +02:00
DjWarmongerandGitHub 5f39e92eb4 Merge branch 'develop' into VCAI_fixes 2018-08-22 08:06:13 +02:00
DjWarmongerandGitHub f484baea9f Merge pull request #474 from vcmi/FuzzyHelperRework
FuzzyHelper refactoring + Ai Map Object Evaluation improvements
2018-08-22 07:33:09 +02:00
DjWarmongerandGitHub a0909468de Merge pull request #477 from vcmi/VCAI_Rework
VCAI main loop rework + lots of discovered bugs and caveats fixed
2018-08-08 22:19:17 +02:00
DjWarmongerandGitHub 2afe36ebf7 Merge pull request #476 from vcmi/SectorMapRefactor
Morning!
2018-08-05 06:56:24 +02:00
DjWarmongerandGitHub f2db64af94 Merge pull request #471 from vcmi/BuildingManager
Building manager
2018-08-04 21:07:40 +02:00
DjWarmongerandGitHub cde2d73982 Merge pull request #473 from dydzio0614/vspatch
Update VCAI VS file
2018-08-04 16:25:14 +02:00
DjWarmongerandGitHub b0e1b8c5ec Merge pull request #465 from vcmi/AIMapObjectEvaluation
Okay let's see where this gets us.
2018-08-04 15:07:08 +02:00
DjWarmongerandGitHub eddaedd13e Merge pull request #469 from nullkiller/ai-fix-movement-for-blockvis
AI: unexpected error in AI logic when take resource on adjasent tile
2018-08-02 17:57:31 +02:00
DjWarmongerandGitHub 3579651b3c Merge pull request #467 from vcmi/ResourceManager2
Okay let's get this done and move forward.
2018-07-29 17:37:50 +02:00
DjWarmongerandGitHub 7c8b74a806 Merge pull request #466 from dydzio0614/AiDoc
Add code comments for VCAI::makeTurnInternal
2018-07-24 16:06:22 +02:00
DjWarmongerandGitHub f8a9a0af2b Merge pull request #455 from nullkiller/deadend-exploration-improvement
After actually checking this branch, I absolutely approve it. AI advances quickly and steadily, and that's the point.
2018-07-19 16:37:56 +02:00