1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
Commit Graph

71 Commits

Author SHA1 Message Date
mateuszb
b75161788e * small changes 2008-08-07 12:29:53 +00:00
Michał W. Urbańczyk
cc7be20b07 Merged most of the changes from trunk.
Because of really huge amount of modifications here I've probably missed some minor stuff. I doubt if it's still compatible with gcc - some changes should be reapplied.
2008-08-02 15:08:03 +00:00
Michał W. Urbańczyk
0c139e72f5 More changes for netcode/serialization
Removed not needed stuff
2008-07-25 17:28:28 +00:00
Michał W. Urbańczyk
b0002ff50b * added files for future server
* make code compiling
* broken objects scripts
2008-07-01 08:01:02 +00:00
Michał W. Urbańczyk
ea8562a6b1 Rest of commit: broken battles, starting hero, town displaying and linker errors.
Further changes for netcode.
2008-06-30 00:06:41 +00:00
Michał W. Urbańczyk
7df624d919 More changes for splitting 2008-06-12 21:08: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
Michał W. Urbańczyk
b00cc9c628 * more code for creature info window and upgrades (still not finished)
* minor fixes
2008-05-23 19:50:11 +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
Michał W. Urbańczyk
36779118b5 Huge commit:
* correctly showing recruitment window (recruitment not ready)
* new slider class
* creature growths handled (horde buildings not yet supported)
* buttons more secure
* info about factions and their creatures
* costs of creatures merged into vector
* info about town structeres state (started)
* new function in CSDL_Ext for drawing borders 
* numerous minor changes
2008-04-04 17:30:53 +00:00
phoebus118
4f3ca5613e Corrected blit8bppAlphaTo24bpp function. Can anyone give me some hints to further improve this algorithm? 2008-03-04 13:59:34 +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
phoebus118
ab3d7fccb5 Fix an error 2008-03-03 11:18:23 +00:00
phoebus118
5f4b582eab Little faster CSDL_Ext::blit8bppAlphaTo24bpp, please review my code. 2008-03-03 10:52:32 +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
d5a4dcc6cd * CPU usage decreased
* it's impossible to select empty artifact slot in hero window
2008-02-12 17:40:01 +00:00
mateuszb
f0e2f1d205 * memory usage significantly decreased (now it's about half of what was before ;])
* load time significantly decreased also (now it's almost like in OH3)
* TODO: make extensively used CSDL_Ext::blit8bppAlphaTo24bpp faster - it slows down VCMI too significantly, but I'm sure it can be as fast as the code from SDL and anyway those speed-ups and memory usage decrease were worth it ;]
2008-02-10 17:44:51 +00:00
mateuszb
2b91d6129b small refactoring in mapHandler, first part of object-to-screen blitting (8bpp with alpha to 24bpp/32bpp without alpha) that will improve speed and memory usage (faster flag color selecting, 8bpp instead of 32bpp defHandlers, no need of secondAlphaTransform) 2008-02-09 14:44:32 +00:00
Michał W. Urbańczyk
a89b4e2c59 * [feature] giving starting hero
* [feature] VCMI will try to use files from /Data folder instead of those from h3bitmap.lod
* [feature] picked artifacts are added to hero's backpack
2008-02-07 18:45:22 +00:00
mateuszb
96734fafa1 general code improvements 2008-02-06 13:50:40 +00:00
mateuszb
974d27aacc small improvements, bugfixes etc. 2008-01-30 14:19:35 +00:00
Michał W. Urbańczyk
1f324c3b31 * improved borders
* minor changes
2008-01-23 22:15:33 +00:00
Michał W. Urbańczyk
b976857c6c Now features in town interface:
* town garrison
* creature growths
* town big pic
2008-01-12 11:32:40 +00:00
Michał W. Urbańczyk
daa9217979 * working info about collecting resources in infoBar
* minor fixes
2007-12-22 18:04:34 +00:00
mateuszb
4a6ffa94d0 part of minimap revealing 2007-12-06 19:54:31 +00:00
mateuszb
58f1a2169f faster FoW in minimap, does not work, compiler errors 2007-12-06 18:55:58 +00:00
mateuszb
d8103fd242 * part of new object randomizing; make it work (I mean moving the last hero on your Arrogance2 - it doesn't wotk and I don't know why) 2007-11-20 17:52:22 +00:00
mateuszb
b07b1ec7dc * displaying flags
* significant speed-ups and warningfixing
2007-10-25 16:14:43 +00:00
mateuszb
21f8684cdd * a bit of printing object flags
* small speed up
2007-10-24 19:54:35 +00:00
Michał W. Urbańczyk
04985fce2f * added #45, #44, #43 2007-10-21 16:45:13 +00:00
mateuszb
f3b5d07aa5 * bugfixes
* general improvements
2007-10-18 20:14:26 +00:00
Michał W. Urbańczyk
4cca2da9c0 * added #38
* CDefEssential is now useful
* initGameState shouldn't overwrite starting armies
* loading more graphics (small creature icons, large hero portraits)
* functions for getting current valueof morale/luck (unfinished)
* added in CLodHandler function that returns CDefEssential with images from desired .def
* copySurface works correctly (I hope)
2007-10-16 22:39:11 +00:00
Michał W. Urbańczyk
9e84383a61 * added #13 and #15 (for buttons and minimap, rest will be added later) 2007-10-13 20:31:50 +00:00
mateuszb
87b3459d14 * resolving #28
* minor changes and improvements
2007-10-07 16:01:53 +00:00
Michał W. Urbańczyk
8421c901a4 * a lot of improvements
* started making an infobar
2007-09-30 16:16:00 +00:00
mateuszb
b0e72f334e small bugfix, move of one file 2007-09-17 17:36:20 +00:00
Michał W. Urbańczyk
16a1861fc4 * heroList
* functions for getting info about heroes in CCallback
* function for initializing GameState
* improvements in CHeroInstance
* added codename
* minor stuff
2007-09-14 13:11:10 +00:00
mateuszb
2d7dbbefc3 * partially written hero moving
* improvements in include system
2007-08-29 12:18:31 +00:00
Michał W. Urbańczyk
dc863f459c *improvements in CPreGame
* uptated specification
* minor stuff
2007-08-24 08:27:32 +00:00
mateuszb
6d3a042add * graphical cursors are now posiible, however the code is a bit ugly and eats significant amount of resources (up to 15% of my CPU power) 2007-08-21 13:48:18 +00:00
Michał W. Urbańczyk
7d704c7f02 * working pathfinder
* drawing paths
* new command "P X1 Y1 Z1 X2 Y2 Z2" - draws path between given points
* borders handling rewritten
* minor stuff
2007-08-17 17:42:21 +00:00
Michał W. Urbańczyk
efcc7d08da * printAtMiddle won't crash when called with an empty string
* removed unused code from CMT.cpp
* statusbar is working
* interaction between buttons and statusbar
2007-08-07 11:54:50 +00:00
Michał W. Urbańczyk
6b0f209626 * VCMI no longer needs h3bitmap and h3sprite folders - delete them. Now everything is readed directly from lod files
* names of lods changed - rename your lod files to h3sprite.lod and h3bitmap.lod and place them in \Data subfolder (as in H3).
* added several clickable buttons to adv. map interface
* underground/surface switch button is functional
* reading more text from ZELP.txt, added CPreGameTextHandler to CGameInfo
* a lot of minor improvements/fixes(/bugs)
2007-08-06 04:03:34 +00:00
Michał W. Urbańczyk
0ea7a46309 * new files (CAdvmapInterface.h and CAdvmapInterface.cpp)
* more player interface (but it's still beginning)
* int3 members public
* more usage of int3
* adjusted animation speed
* reversed changes from rev.165 in CPreGame - it wasn't bug, it just works so. That change was breaking a few things in CPreGame and was needless - Player ID == Player's Color. I thought it was obvious.
* minor stuff
2007-08-03 21:47:34 +00:00
Michał W. Urbańczyk
1380a7fd34 * New files - CGameInterface.h and CGameInterface.cpp - add them to your project
* Fixed several memory leaks
* Added support for player colors in CMessage (still need some work)
* Moved declarations of CPreGame buttons to CPreGame.h
* started making player interface (new button classes etc)
2007-07-28 09:44:10 +00:00
Michał W. Urbańczyk
8cb1c3ff90 * new files (TownHandler) - add them to your project
* now you can choose castle in scenario options
* function blitAtWR works as blitAt, and refreshes destination rect
* vectorize function (on TowDragon's wish) - may be useful for debugging
* as always- minor bigfixes
2007-07-23 12:13:33 +00:00
Michał W. Urbańczyk
db65d9ee15 * CLodHandler now stories entries in nodrze (much faster searching)
* CLodHandler init cleared up (a bit)
* giveDef optimized
* horizontal slider
* printAtMiddle updates corrrect rect
* adjusted shadows
* parts of advanced options menu 
* minor fixes/improvements
2007-07-17 20:51:49 +00:00
mateuszb
b65f1dae0f function to set palyer's color on flags, small improvements in CHeroHandler (e.g. removing nodrze and initializing hero's classes) 2007-07-16 10:03:54 +00:00
mateuszb
21bbfda899 framerate keeper for main loop, working wersion of color converter (blue -> player's) and small tweak 2007-07-15 13:36:04 +00:00