From 6ed3c85f72184ad8b791f8d3f3f3733f39d91f77 Mon Sep 17 00:00:00 2001 From: mateuszb Date: Sun, 10 Jun 2007 20:14:37 +0000 Subject: [PATCH] =?UTF-8?q?prawie=20ca=C5=82e=20zaczytywanie=20budynk?= =?UTF-8?q?=C3=B3w=20(zosta=C5=82y=20ju=C5=BC=20tylko=20nazwy=20dwelling?= =?UTF-8?q?=C3=B3w)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CBuildingHandler.cpp | 298 ++++++++++++++++++++++++++++++++++++++++++- CBuildingHandler.h | 16 ++- 2 files changed, 310 insertions(+), 4 deletions(-) diff --git a/CBuildingHandler.cpp b/CBuildingHandler.cpp index 54c65c0b8..cc0c90f01 100644 --- a/CBuildingHandler.cpp +++ b/CBuildingHandler.cpp @@ -248,6 +248,7 @@ void CBuildingHandler::loadBuildings() buildings.push_back(nbu); } loadNames(); + loadNeutNames(); } void CBuildingHandler::loadNames() @@ -309,7 +310,7 @@ void CBuildingHandler::loadNames() graal.type = EbuildingType(ii+1); graal.wood = graal.mercury = graal.ore = graal.sulfur = graal.crystal = graal.gems = graal.gold = 0; graal.isDwelling = false; - graals.push_back(graal); + grails.push_back(graal); } else //for resource silos { @@ -339,4 +340,299 @@ void CBuildingHandler::loadNames() } } } + ///////////////reading artifact merchant + int befi=i; + for(i; i buildings; //vector of buildings std::vector resourceSilos; //vector with resource silos only - for castle profiled descriptions - std::vector graals; //vector with graal - type buildings only - for castle profiled descriptions - void loadBuildings(); - void loadNames(); + std::vector grails; //vector with grail - type buildings only - for castle profiled descriptions + std::vector blacksmiths; //vector with names and descriptions for blacksmith (castle - dependent) + CBuilding blacksmith; //global name and description for blacksmiths + CBuilding moat; //description and name of moat + CBuilding shipyard; //castle - independent name and description of shipyard + CBuilding shipyardWithShip; //name and description for shipyard with ship + CBuilding artMerchant; //name and description of artifact merchant + CBuilding l1horde, l2horde, l3horde, l4horde, l5horde; //castle - independent horde names and descriptions + CBuilding grail; //castle - independent grail description + CBuilding resSilo; //castle - independent resource silo name and description + void loadBuildings(); //main loader, calls loading functions below + void loadNames(); //loads castle - specufuc names and descriptoins + void loadNeutNames(); //loads castle independent names and descriptions }; #endif //CBUILDINGHANDLER_H \ No newline at end of file