WalkerManager::WalkerManager() : _d( new Impl ) { addCreator( WT_EMIGRANT, OC3_STR_EXT(WT_EMIGRANT), new WalkerPtrCreator<Emigrant>() ); addCreator( WT_IMMIGRANT, OC3_STR_EXT(WT_IMMIGRANT), new WalkerPtrCreator<Immigrant>() ); addCreator( WT_CART_PUSHER, OC3_STR_EXT(WT_CART_PUSHER), new WalkerPtrCreator<CartPusher>() ); addCreator( WT_PREFECT, OC3_STR_EXT(WT_PREFECT), new WalkerPtrCreator<WalkerPrefect>() ); }
WidgetFactory::WidgetFactory() : _d( new Impl ) { // entertainment addCreator( OC3_STR_EXT(Label), new BaseWidgetCreator<Label>() ); addCreator( OC3_STR_EXT(EditBox), new BaseWidgetCreator<EditBox>() ); addCreator( OC3_STR_EXT(TexturedButton), new BaseWidgetCreator<TexturedButton>() ); addCreator( OC3_STR_EXT(PushButton), new BaseWidgetCreator<PushButton>() ); addCreator( OC3_STR_EXT(ListBox), new BaseWidgetCreator<ListBox>() ); }
void Granary::save( VariantMap& stream) const { WorkingBuilding::save( stream ); stream[ "__debug_typeName" ] = Variant( std::string( OC3_STR_EXT(B_GRANARY) ) ); stream[ "goodStore" ] = _d->goodStore.save(); }
InfoBoxManager::InfoBoxManager() : _d( new Impl ) { addCreator( B_ROAD, OC3_STR_EXT(B_ROAD), new BaseInfoboxCreator<InfoBoxLand>() ); addCreator( B_HOUSE, OC3_STR_EXT(B_HOUSE), new InfoBoxHouseCreator() ); addCreator( B_PREFECT, OC3_STR_EXT(B_PREFECT), new ServiceBaseInfoboxCreator( "##prefecture_title##", "##prefecture_text##") ); addCreator( B_ENGINEER, OC3_STR_EXT(B_ENGINEER), new ServiceBaseInfoboxCreator( "##engineering_post_title##", "##engineering_post_text##" ) ); addCreator( B_WELL, OC3_STR_EXT(B_WELL), new ServiceBaseInfoboxCreator( "##well_title##", "##well_text##" ) ); addCreator( B_FOUNTAIN, OC3_STR_EXT(B_FOUNTAIN), new ServiceBaseInfoboxCreator( "##fontaun_title##", "##fontaun_text##" ) ); addCreator( B_MARKET, OC3_STR_EXT(B_MARKET), new BaseInfoboxCreator<GuiInfoMarket>() ); addCreator( B_GRANARY, OC3_STR_EXT(B_GRANARY), new BaseInfoboxCreator<GuiInfoGranary>() ); addCreator( B_GRAPE, OC3_STR_EXT(B_GRAPE), new BaseInfoboxCreator<InfoBoxFarm>() ); addCreator( B_WHEAT, OC3_STR_EXT(B_WHEAT), new BaseInfoboxCreator<InfoBoxFarm>() ); addCreator( B_OLIVE, OC3_STR_EXT(B_OLIVE), new BaseInfoboxCreator<InfoBoxFarm>() ); addCreator( B_FRUIT, OC3_STR_EXT(B_FRUIT), new BaseInfoboxCreator<InfoBoxFarm>() ); addCreator( B_MEAT, OC3_STR_EXT(B_MEAT), new BaseInfoboxCreator<InfoBoxFarm>() ); addCreator( B_VEGETABLE, OC3_STR_EXT(B_VEGETABLE), new BaseInfoboxCreator<InfoBoxFarm>() ); addCreator( B_TEMPLE_CERES, OC3_STR_EXT(B_TEMPLE_CERES), new BaseInfoboxCreator<InfoBoxTemple>() ); addCreator( B_GARDEN, OC3_STR_EXT(B_GARDEN), new InfoBoxBasicCreator( _("building_garden"), _("##garden_desc##")) ); addCreator( B_STATUE1, OC3_STR_EXT(B_STATUE1), new InfoBoxBasicCreator( _("building_statue_small"), _("##statue_desc##")) ); addCreator( B_STATUE2, OC3_STR_EXT(B_STATUE2), new InfoBoxBasicCreator( _("building_statue_middle"), _("##statue_desc##")) ); addCreator( B_STATUE3, OC3_STR_EXT(B_STATUE3), new InfoBoxBasicCreator( _("building_statue_big"), _("##statue_desc##")) ); addCreator( B_PLAZA, OC3_STR_EXT(B_PLAZA), new BaseInfoboxCreator<InfoBoxLand>() ); addCreator( B_NONE, OC3_STR_EXT(B_NONE), new BaseInfoboxCreator<InfoBoxLand>() ); }
WidgetFactory::WidgetFactory() : _d( new Impl ) { // entertainment addCreator( OC3_STR_EXT(Label), new BaseWidgetCreator<Label>() ); }
ConstructionManager::ConstructionManager() : _d( new Impl ) { // entertainment addCreator( B_THEATER, OC3_STR_EXT(B_THEATER), new BuildingCreator<Theater>() ); addCreator( B_AMPHITHEATER, OC3_STR_EXT(B_AMPHITHEATER), new BuildingCreator<BuildingAmphiTheater>() ); addCreator( B_COLLOSSEUM, OC3_STR_EXT(B_COLLOSSEUM), new BuildingCreator<BuildingCollosseum>() ); addCreator( B_ACTOR_COLONY, OC3_STR_EXT(B_ACTOR_COLONY), new BuildingCreator<BuildingActor>() ); addCreator( B_GLADIATOR_SCHOOL, OC3_STR_EXT(B_GLADIATOR_SCHOOL), new BuildingCreator<BuildingGladiator>() ); addCreator( B_LION_HOUSE, OC3_STR_EXT(B_LION_HOUSE), new BuildingCreator<BuildingLion>() ); addCreator( B_CHARIOT_MAKER, OC3_STR_EXT(B_CHARIOT_MAKER), new BuildingCreator<BuildingChariot>() ); addCreator( B_HIPPODROME, OC3_STR_EXT(B_HIPPODROME),new BuildingCreator<BuildingHippodrome>() ); // road&house addCreator(B_HOUSE, OC3_STR_EXT(B_HOUSE), new BuildingCreator<House>() ); addCreator(B_ROAD, OC3_STR_EXT(B_ROAD) , new BuildingCreator<Road>() ); // administration addCreator(B_FORUM, OC3_STR_EXT(B_FORUM) , new BuildingCreator<Forum>() ); addCreator(B_SENATE, OC3_STR_EXT(B_SENATE), new BuildingCreator<Senate>() ); addCreator(B_GOVERNOR_HOUSE, OC3_STR_EXT(B_GOVERNOR_HOUSE) , new BuildingCreator<GovernorsHouse>() ); addCreator(B_GOVERNOR_VILLA, OC3_STR_EXT(B_GOVERNOR_VILLA) , new BuildingCreator<GovernorsVilla>() ); addCreator(B_GOVERNOR_PALACE, OC3_STR_EXT(B_GOVERNOR_PALACE), new BuildingCreator<GovernorsPalace>() ); addCreator(B_STATUE1, OC3_STR_EXT(B_STATUE1), new BuildingCreator<SmallStatue>() ); addCreator(B_STATUE2, OC3_STR_EXT(B_STATUE2), new BuildingCreator<MediumStatue>() ); addCreator(B_STATUE3, OC3_STR_EXT(B_STATUE3), new BuildingCreator<BigStatue>() ); addCreator(B_GARDEN, OC3_STR_EXT(B_GARDEN) , new BuildingCreator<Garden>() ); addCreator(B_PLAZA, OC3_STR_EXT(B_PLAZA) , new BuildingCreator<Plaza>() ); // water addCreator(B_WELL, OC3_STR_EXT(B_WELL) , new BuildingCreator<BuildingWell>() ); addCreator(B_FOUNTAIN, OC3_STR_EXT(B_FOUNTAIN) , new BuildingCreator<BuildingFountain>() ); addCreator(B_AQUEDUCT, OC3_STR_EXT(B_AQUEDUCT), new BuildingCreator<Aqueduct>() ); addCreator(B_RESERVOIR, OC3_STR_EXT(B_RESERVOIR), new BuildingCreator<Reservoir>() ); // security addCreator(B_PREFECTURE, OC3_STR_EXT(B_PREFECTURE) , new BuildingCreator<BuildingPrefecture>() ); addCreator(B_FORT_LEGIONNAIRE, OC3_STR_EXT(B_FORT_LEGIONNAIRE), new BuildingCreator<FortLegionnaire>() ); addCreator(B_FORT_JAVELIN, OC3_STR_EXT(B_FORT_JAVELIN) , new BuildingCreator<FortJaveline>() ); addCreator(B_FORT_MOUNTED, OC3_STR_EXT(B_FORT_MOUNTED) , new BuildingCreator<FortMounted>() ); addCreator(B_MILITARY_ACADEMY, OC3_STR_EXT(B_MILITARY_ACADEMY), new BuildingCreator<Academy>() ); addCreator(B_BARRACKS, OC3_STR_EXT(B_BARRACKS) , new BuildingCreator<Barracks>() ); // commerce addCreator(B_MARKET, OC3_STR_EXT(B_MARKET) , new BuildingCreator<Market>() ); addCreator(B_WAREHOUSE, OC3_STR_EXT(B_WAREHOUSE), new BuildingCreator<Warehouse>() ); addCreator(B_GRANARY, OC3_STR_EXT(B_GRANARY) , new BuildingCreator<Granary>() ); // farms addCreator(B_WHEAT_FARM, OC3_STR_EXT(B_WHEAT_FARM) , new BuildingCreator<FarmWheat>() ); addCreator(B_OLIVE_FARM, OC3_STR_EXT(B_OLIVE_FARM) , new BuildingCreator<FarmOlive>() ); addCreator(B_GRAPE_FARM, OC3_STR_EXT(B_GRAPE_FARM) , new BuildingCreator<FarmGrape>() ); addCreator(B_PIG_FARM, OC3_STR_EXT(B_PIG_FARM) , new BuildingCreator<FarmMeat>() ); addCreator(B_FRUIT_FARM, OC3_STR_EXT(B_FRUIT_FARM) , new BuildingCreator<FarmFruit>() ); addCreator(B_VEGETABLE_FARM, OC3_STR_EXT(B_VEGETABLE_FARM), new BuildingCreator<FarmVegetable>() ); // raw materials addCreator(B_IRON_MINE, OC3_STR_EXT(B_IRON_MINE) , new BuildingCreator<IronMine>() ); addCreator(B_TIMBER_YARD, OC3_STR_EXT(B_TIMBER_YARD), new BuildingCreator<TimberLogger>() ); addCreator(B_CLAY_PIT, OC3_STR_EXT(B_CLAY_PIT) , new BuildingCreator<ClayPit>() ); addCreator(B_MARBLE_QUARRY, OC3_STR_EXT(B_MARBLE_QUARRY), new BuildingCreator<FactoryMarble>() ); // factories addCreator(B_WEAPONS_WORKSHOP, OC3_STR_EXT(B_WEAPONS_WORKSHOP) , new BuildingCreator<WeaponsWorkshop>() ); addCreator(B_FURNITURE, OC3_STR_EXT(B_FURNITURE), new BuildingCreator<FactoryFurniture>() ); addCreator(B_WINE_WORKSHOP, OC3_STR_EXT(B_WINE_WORKSHOP) , new BuildingCreator<Winery>() ); addCreator(B_OIL_WORKSHOP, OC3_STR_EXT(B_OIL_WORKSHOP) , new BuildingCreator<FactoryOil>() ); addCreator(B_POTTERY, OC3_STR_EXT(B_POTTERY) , new BuildingCreator<FactoryPottery>() ); // utility addCreator(B_ENGINEER_POST, OC3_STR_EXT(B_ENGINEER_POST), new BuildingCreator<BuildingEngineer>() ); addCreator(B_LOW_BRIDGE, OC3_STR_EXT(B_LOW_BRIDGE), new BuildingCreator<LowBridge>() ); addCreator(B_HIGH_BRIDGE, OC3_STR_EXT(B_HIGH_BRIDGE), new BuildingCreator<HighBridge>() ); addCreator(B_DOCK, OC3_STR_EXT(B_DOCK) , new BuildingCreator<Dock>() ); addCreator(B_SHIPYARD, OC3_STR_EXT(B_SHIPYARD), new BuildingCreator<Shipyard>() ); addCreator(B_WHARF, OC3_STR_EXT(B_WHARF) , new BuildingCreator<Wharf>() ); addCreator(B_TRIUMPHAL_ARCH, OC3_STR_EXT(B_TRIUMPHAL_ARCH) , new BuildingCreator<TriumphalArch>() ); // religion addCreator(B_TEMPLE_CERES, OC3_STR_EXT(B_TEMPLE_CERES) , new BuildingCreator<TempleCeres>() ); addCreator(B_TEMPLE_NEPTUNE, OC3_STR_EXT(B_TEMPLE_NEPTUNE), new BuildingCreator<TempleNeptune>() ); addCreator(B_TEMPLE_MARS, OC3_STR_EXT(B_TEMPLE_MARS) , new BuildingCreator<TempleMars>() ); addCreator(B_TEMPLE_VENUS, OC3_STR_EXT(B_TEMPLE_VENUS) , new BuildingCreator<TempleVenus>() ); addCreator(B_TEMPLE_MERCURE, OC3_STR_EXT(B_TEMPLE_MERCURE), new BuildingCreator<TempleMercure>() ); addCreator(B_BIG_TEMPLE_CERES, OC3_STR_EXT(B_BIG_TEMPLE_CERES) , new BuildingCreator<BigTempleCeres>() ); addCreator(B_BIG_TEMPLE_NEPTUNE, OC3_STR_EXT(B_BIG_TEMPLE_NEPTUNE), new BuildingCreator<BigTempleNeptune>() ); addCreator(B_BIG_TEMPLE_MARS, OC3_STR_EXT(B_BIG_TEMPLE_MARS) , new BuildingCreator<BigTempleMars>() ); addCreator(B_BIG_TEMPLE_VENUS, OC3_STR_EXT(B_BIG_TEMPLE_VENUS) , new BuildingCreator<BigTempleVenus>() ); addCreator(B_BIG_TEMPLE_MERCURE, OC3_STR_EXT(B_BIG_TEMPLE_MERCURE), new BuildingCreator<BigTempleMercure>() ); addCreator(B_TEMPLE_ORACLE, OC3_STR_EXT(B_TEMPLE_ORACLE) , new BuildingCreator<TempleOracle>() ); // health addCreator(B_BATHS, OC3_STR_EXT(B_BATHS) , new BuildingCreator<Baths>() ); addCreator(B_BARBER, OC3_STR_EXT(B_BARBER) , new BuildingCreator<Barber>() ); addCreator(B_DOCTOR, OC3_STR_EXT(B_DOCTOR) , new BuildingCreator<Doctor>() ); addCreator(B_HOSPITAL, OC3_STR_EXT(B_HOSPITAL), new BuildingCreator<Hospital>() ); // education addCreator(B_SCHOOL, OC3_STR_EXT(B_SCHOOL) , new BuildingCreator<School>() ); addCreator(B_LIBRARY, OC3_STR_EXT(B_LIBRARY), new BuildingCreator<Library>() ); addCreator(B_COLLEGE, OC3_STR_EXT(B_COLLEGE), new BuildingCreator<College>() ); addCreator(B_MISSION_POST, OC3_STR_EXT(B_MISSION_POST), new BuildingCreator<MissionPost>() ); // natives addCreator(B_NATIVE_HUT, OC3_STR_EXT(B_NATIVE_HUT) , new BuildingCreator<NativeHut>() ); addCreator(B_NATIVE_CENTER, OC3_STR_EXT(B_NATIVE_CENTER), new BuildingCreator<NativeCenter>() ); addCreator(B_NATIVE_FIELD, OC3_STR_EXT(B_NATIVE_FIELD) , new BuildingCreator<NativeField>() ); //damages addCreator(B_BURNING_RUINS , OC3_STR_EXT(B_BURNING_RUINS), new BuildingCreator<BurningRuins>() ); addCreator(B_BURNED_RUINS , OC3_STR_EXT(B_BURNED_RUINS), new BuildingCreator<BurnedRuins>() ); addCreator(B_COLLAPSED_RUINS , OC3_STR_EXT(B_COLLAPSED_RUINS), new BuildingCreator<CollapsedRuins>() ); }
WalkerManager::WalkerManager() : _d( new Impl ) { addCreator( WT_EMIGRANT, OC3_STR_EXT(WT_EMIGRANT), new WalkerMigrantCreator<Emigrant>() ); addCreator( WT_IMMIGRANT, OC3_STR_EXT(WT_IMMIGRANT), new WalkerMigrantCreator<Immigrant>() ); }