1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

* redone def info handling

* redone randomization (mam nadziemę, że będzie toto działać)
* no more cheating pathfinder
* minor improvements
* version changed to 0.52
This commit is contained in:
Michał W. Urbańczyk
2008-02-05 03:56:45 +00:00
parent 21ec0b77d4
commit fe5bcc19cf
22 changed files with 775 additions and 1403 deletions

View File

@@ -72,6 +72,7 @@ public:
std::vector<CDefHandler *> staticRiverDefs;
std::map<std::string, CDefHandler*> loadedDefs; //pointers to loaded defs (key is filename, uppercase)
std::map<int, CGDefInfo*> villages, forts, capitols;
PseudoV< PseudoV< PseudoV<unsigned char> > > hideBitmap; //specifies number of graphic that should be used to fully hide a tile
@@ -91,6 +92,8 @@ public:
bool recalculateHideVisPos(int3& pos); //recalculates position for hidden / visitable positions
bool recalculateHideVisPosUnderObj(CGObjectInstance * obj, bool withBorder = false); //recalculates position for hidden / visitable positions under given object
void init();
std::pair<int,int> pickObject(CGObjectInstance *obj);
void randomizeObject(CGObjectInstance *cur);
void calculateBlockedPos();
void initObjectRects();
void borderAndTerrainBitmapInit();