Commit Graph
100 Commits
Author SHA1 Message Date
mateuszb 447e5babda * merged CBattleConsole::stackKilled into CBattleInterface::stacksAreAttacked (I hope it'll work even better than before)
* a few optimizations
* maybe something else I've forgotten ;]
2008-11-28 12:11:31 +00:00
mateuszb 2d1fc64dd9 * forgetfulness spell implemented
* partial support for many creatures being attacked at once (killed - not killed mixes and callback/engine support must be added)
2008-11-17 18:47:43 +00:00
mateuszb 32505ec161 * reverted pathfinder with necessary updates including handling of visitDir and code cleanup (needs a bit of testing but Zamolxis will probably do it for us ;]) 2008-11-15 13:44:32 +00:00
mateuszb 73cd282bbe * fixed problem with levelling above 15 lvl (Zamolxis #2 bug)
* probably fixed reported problems with battles (Zamolxis #3 - #7) - needs further testing
2008-11-14 18:18:13 +00:00
mateuszb 0cc5571604 * new spell: implosion
* optimizations in def handling
* small refactoring
2008-11-12 18:59:33 +00:00
mateuszb d2db5ba18e * added slow spell
* a few mistakes in AC_desc.txt fixed
* appropriate spells cannot be casted at any tile
* small memory optimizations in CDefHandler
* minor fixes
2008-11-11 15:17:58 +00:00
mateuszb 6b9146f998 * lightning bolt and ice bolt spells
* displayEffect shows animations on more correct places
* removed three magic numbers (now they're BFIELD_WIDTH, BFIELD_HEIGHT and BFIELD_SIZE macros)
* minor changes
2008-11-10 19:06:04 +00:00
mateuszb ceb3cf8eae * magic arrow probably works
* war machines support partially added
* queue of stacks narrowed
* minor fixes
2008-11-06 17:17:48 +00:00
mateuszb ee54e5d2e2 * hopefully fixed bug reported buy krystian1995 (wrongly displayed prayer animation)
* partially fixed bug with double getting hit animation
2008-10-31 13:15:36 +00:00
mateuszb 45204d8beb * displaying spell effects (currently only arrow magic effect is shown)
* minor fixes
2008-10-19 15:41:18 +00:00
mateuszb 9a8e009862 * magic arrow flight animation (full hit animation will be later as it should be implemented via support for AC format)
* fixed bug with dying unit
* minor things
2008-10-18 13:50:18 +00:00
mateuszb 20a6e05718 small fixes 2008-10-17 17:43:25 +00:00
mateuszb 929ce79ad4 * general improvements in battles
* calls for spell casting in battles (they usually crash VCMI server)
2008-10-17 16:30:56 +00:00
mateuszb 7104326563 * water elemental will really be treated as 2 hex creature
* potential infinite loop in reverseCreature removed
* proper handling of battle cursor
2008-10-05 12:34:14 +00:00
mateuszb c5a5cb7b38 further battle fixes 2008-10-04 10:00:31 +00:00
mateuszb e94e6ac78a probably fixed problems with battles 2008-10-04 09:27:57 +00:00
mateuszb b08b29d0d8 * sprites from /Sprites folder are handled correctly now
* fixed pathfinder and path arrows
* clicking on a tile in advmap view when a path is shown will not only hide it but also calculate a new one
2008-10-03 15:15:23 +00:00
mateuszb 57238200e6 bugfixes 2008-09-30 14:50:11 +00:00
mateuszb 538ffb1579 * added support for archery, offence and armorer secondary abilities
* hero's primary skills account for damage dealt by creatures in battle
* magical hero are given spellbook at the beginning
* added initial secondary skills for heroes
* minor fixes and improvements
2008-09-29 11:03:30 +00:00
mateuszb ceaa51d07d * fixed bug with levelling up
* fixed pictures of secondary skills in hero window (in left - click popups)
* added handling of navigation, logistics, pathfinding, scouting end estates secondary skills
2008-09-28 13:29:37 +00:00
mateuszb a4afdc7145 * minimap shows all flaggable objects (towns, mines, etc.)
* minor optimizations
2008-09-26 14:16:01 +00:00
mateuszb 6a3d0b666f * directional attack in battles
* CSystemOptionsWindow partially done
* added a few consts and references to improve performance
2008-09-25 14:09:31 +00:00
mateuszb 8bde616908 * mostly done battle options (although they're not saved)
* general improvements in rendering of battle interface
2008-09-24 16:25:14 +00:00
mateuszb 64ce34af0e first part of CBattleOptionsWindow 2008-09-23 15:40:30 +00:00
mateuszb e1be5896b9 * better animation handling in battles
* VCMI won't crash when units without start/end of walking animations are moved (ie. halberdier)
2008-09-22 12:22:10 +00:00
mateuszb 8c937d92ad * dead stacks won't be displayed in battle queue
* fixed bug with pathfinder
2008-09-20 12:33:37 +00:00
mateuszb ca1dbfe949 changed most of std::cout to tlogX
Alt+F4 quits the game
2008-09-19 12:09:15 +00:00
mateuszb f97628e67f a few minor fixes 2008-09-19 11:19:14 +00:00
mateuszb 5ee37eeb3d * fixed bug with disappearing head of a hero in adventure map
* some objects are no longer accessible from the top
* minor fixes
2008-09-18 14:18:08 +00:00
mateuszb 1402b6d634 partial support for formations in battles 2008-09-17 11:55:03 +00:00
mateuszb c5c9127673 * fixed a few problems with refreshing screen during blitting using CSDL_Ext::printAtMiddle
* fixed drawbacks in displaying secondary skills in hero window
* fixed two bugs with spellBook
* corrected order of spells in spellBook
* spellBook is opened when hero in battle is left-clicked
2008-09-16 15:23:44 +00:00
mateuszb cc1b5f37cd * fourth part of spellbook
* small fixes
2008-09-15 16:46:54 +00:00
mateuszb ae6e260107 * third part of spellBook
* probably finished counterattacking
2008-09-12 13:06:53 +00:00
mateuszb e4d8d66de1 second part of spellbook 2008-09-11 12:29:22 +00:00
mateuszb 11cef89810 * partially done spell window 2008-09-10 12:19:48 +00:00
mateuszb b256f0ff43 * stack queue in battle (shows when 'c' key is pressed)
* minor fix of cursor image
2008-09-09 11:25:21 +00:00
mateuszb 781340f339 * window of result of battle is shown when one of players has no live stacks
* confirm window is shown before retreat
* minor improvements
2008-09-08 11:32:16 +00:00
mateuszb 062f59a583 printing casualties in battles and minor things 2008-09-07 15:39:19 +00:00
mateuszb 2af92aa170 * first part of end of battle window
* fixed heap corruption while exiting battle
2008-09-05 16:08:25 +00:00
mateuszb 6633fb86ef very significant optimization of battles 2008-09-03 10:52:07 +00:00
mateuszb 37753e6678 probably optimized code for battles 2008-08-31 17:23:40 +00:00
mateuszb 92971e0df0 * working minimap's FoW
* properly displayed neutral buildings' flags
2008-08-07 15:09:10 +00:00
mateuszb b75161788e * small changes 2008-08-07 12:29:53 +00:00
mateuszb c8a6fc9cba reverted changes in r516 (what are those files for?) 2008-08-03 14:32:31 +00:00
mateuszb 5ec934d6be * resolved #69 2008-08-03 13:39:34 +00:00
mateuszb e1b4331ee2 * resolved #62 and #66 2008-08-02 10:26:56 +00:00
mateuszb 7aeadd5a06 * removed bug causing significant increase of CPU consumption
* slightly optimized showing of battle interface
* animation of getting hit / death by shooting is displayed when it should be
2008-08-01 14:39:29 +00:00
mateuszb 86f0af12ae * resolved #59 2008-07-31 14:38:05 +00:00
mateuszb 016e766fbb * next part of shooting in battles (there will be more of them)
* now compiles under MSVC
* small refactoring / cleaning / fixing / etc.
2008-07-31 12:59:42 +00:00
mateuszb 4bd39202c2 * first part shooting in battles (units cannot shoot yet)
* minor improvements
2008-07-11 09:43:13 +00:00
mateuszb ab421ea960 * bugfix: splitting stacks works in hero window 2008-06-18 13:06:35 +00:00
mateuszb 2dfb521602 * console is closed when application exits 2008-06-15 16:39:35 +00:00
mateuszb 7bb67cd711 fixed memory leak 2008-06-14 18:51:55 +00:00
mateuszb bad05fee50 * fixed pathfinder
* fixed problem with battles
2008-06-14 09:54:57 +00:00
mateuszb bd13d80df0 small pathfinder fix (please test a bit) 2008-06-13 18:56:30 +00:00
mateuszb afe2bc4cfa small fix 2008-06-12 14:14:59 +00:00
mateuszb c13f596d1d * stack at the limit of unit's range can now be attacked
* range of unit is now properly displayed
* battle log is scrolled down when new event occurs
* dead stacks don't lock hexes
* living units on hexes with corpses are properly displayed
* dead units cannot be attacked now
2008-06-11 10:27:30 +00:00
mateuszb 4f0ce359f6 almost complete close range attack (only choosing direction is to be done) 2008-06-10 11:34:20 +00:00
mateuszb f4ebf74fda improvements in battles (attacking) 2008-06-09 12:53:45 +00:00
mateuszb d0798670ad * better code handling attack animation in battles 2008-06-06 13:53:33 +00:00
mateuszb 0b16616d7a Better pathfinder - it's not fixed completely as arrows for move in adventure map aren't always in appropriate color but it's significantly better. I'm not also sure how this pathfinder deals with different costs of straight and diagonal costs of move through a tile. 2008-06-03 14:44:09 +00:00
mateuszb 25ab2e5d8b * animations won't go in the same phase (resolved #55)
* small upgrades
2008-06-03 13:15:34 +00:00
mateuszb 88a29416da improvements in battles 2008-05-30 11:53:04 +00:00
mateuszb 21a8d87796 small upgrade 2008-05-27 15:16:12 +00:00
mateuszb 1aa758a737 * partially done attacking in battles
* screen isn't now refreshed while blitting creature info window
* r-click creature info windows in battles
* a few minor things
2008-05-27 13:16:35 +00:00
mateuszb 33e3bf4849 better battle pathfinder and unit reversing 2008-05-03 15:18:48 +00:00
mateuszb 62952e3163 a bit of refactoring (removed variable ekran as we have screen which is the same as ekran) 2008-04-25 09:25:59 +00:00
mateuszb 9674343453 * fixed memory leak in battles
* blitting creature animatoins to rects (not tested!)
* a few minor improvements
2008-04-20 15:56:03 +00:00
mateuszb 8fca3147b3 small fix 2008-04-19 18:08:29 +00:00
mateuszb f9a4c2a5fd better support for two-hex stacks 2008-04-19 17:10:57 +00:00
mateuszb df76e03628 console in battles and small improvements 2008-04-16 17:21:02 +00:00
mateuszb 54f94cf5ef a bit of escaping battlefield (to be finished) 2008-04-15 16:52:31 +00:00
mateuszb 063d2279ee * nicer movement of creatures on battlefield
* amounts of creatures on battlefield
* partial support for two hex creatures
* a few minor things
2008-04-14 18:24:46 +00:00
mateuszb 149c6772e2 battle and general upgrades and bugfixes 2008-04-07 17:51:46 +00:00
mateuszb fc4e0215fb * moving units and some minor improvements 2008-03-29 10:59:18 +00:00
mateuszb 137f62798b completed calls of functions during stack's move 2008-03-24 19:04:30 +00:00
mateuszb 500f55cd52 A few upgrades and bugfixes in battles 2008-03-24 13:25:11 +00:00
mateuszb d5a5a04811 progress in battles 2008-03-23 17:25:38 +00:00
mateuszb f5cd675c6a requirements almost complete (todo: add nontrivial upgraded conflux dwelling's requirements) 2008-03-22 16:22:21 +00:00
mateuszb db12ede837 added requirements for some towns (to be tested - they're probably good, but seem to don't work) 2008-03-20 14:23:54 +00:00
mateuszb bd7cf60f13 faster and better creature animation handling (almost finished!) 2008-03-18 17:05:00 +00:00
mateuszb d106fdcf2a battle improvements 2008-03-15 17:48:05 +00:00
mateuszb 7b88f4a70b another piece of battles (with code reorganization) 2008-03-14 18:24:37 +00:00
mateuszb b95551a0be * another part of Battle interface 2008-03-10 20:19:41 +00:00
mateuszb 0379fbfc1d * [battles] displaying fighting creatures
* faster blitting of animated unit
2008-03-08 15:23:04 +00:00
mateuszb f1e40d5e86 * significant speed-up in def loading
* bugfixes (player's id - player's serial mismatches)
2008-03-06 16:42:34 +00:00
mateuszb 26592feb02 missing file 2008-03-06 12:59:31 +00:00
mateuszb 4236c65512 another piece of battles (and CCreatureAnimation) 2008-03-05 17:01:41 +00:00
mateuszb ffd3742e3d another piece of battles
Yifeng, your blitting optimizations are good enough for now (and work for me ;]). If you want to do something simple and developing, you could write sound handling - especially a function to play sounds directly from lod files (atm it requires unpacking to a file and opening it). It may require a small patch to SDL_mixer, but will significantly contribute to this project.
2008-03-04 17:25:58 +00:00
mateuszb 9b9a9b455f * hero is displayed in battle window
* battle console buttons added
* blit8bppAlphaTo24bpp bad working fixed (to be optimized)
* maybe something else
2008-03-03 19:41:10 +00:00
mateuszb 68d37e1507 * small bugfix in dismissing hero (still needs better actualization of advmap lists)
* most buttons in battleInterface
2008-03-01 11:49:25 +00:00
mateuszb 8c0536be8e battles are now enabled - but running any freezes the screen
Tow, do something with that
2008-02-28 17:00:16 +00:00
mateuszb fe2356ea0f missing file 2008-02-26 18:02:04 +00:00
mateuszb 1580c71c78 * reported problems with hero flags resolved
* a bit of battle interface
* heroes with same owner cannot fight
2008-02-26 18:01:26 +00:00
mateuszb 0c2cf02ca6 * given hero is placed in the town entrance
Wspólne zmiany
* some objects such as river delta won't be blitted "on" hero
* tiles under FoW are inaccessible
* giving random hero on RoE maps
* improved protection against hero duplication
* fixed starting values of primary abilities of random heroes on RoE/AB maps
2008-02-23 19:20:41 +00:00
mateuszb 8b5a50f619 * new interface coloring (many thanks to GrayFace ;])
* fixed bug in object flag's coloring
* a bit of water animation (next thanks to GrayFace, even if it does not work good ATM)
2008-02-22 17:47:14 +00:00
mateuszb 3844c45441 small helpful function 2008-02-17 19:04:27 +00:00
mateuszb a997c41f5c probably fixed problem with FoW on minimap on L-sized maps 2008-02-16 10:10:10 +00:00
mateuszb d5a4dcc6cd * CPU usage decreased
* it's impossible to select empty artifact slot in hero window
2008-02-12 17:40:01 +00:00
mateuszb 4a655a0ad1 small changes 2008-02-11 18:40:10 +00:00