void WindStore::recalculateWind(const MoreData &info, DerivedInfo &derived) const { bool found; Vector CurWind = windlist.getWind(info.time, info.nav_altitude, found); if (found) { NewWind(info, derived, CurWind); } }
Engine::Engine() { Sanguosha = this; addPackage(NewStandard()); addPackage(NewWind()); addPackage(NewFire()); addPackage(NewThicket()); addPackage(NewMountain()); addPackage(NewGod()); addPackage(NewSP()); addPackage(NewYJCM()); addPackage(NewYitian()); // addPackage(NewWisdom()); addPackage(NewTest()); addPackage(NewStandardCard()); addPackage(NewStandardExCard()); addPackage(NewManeuvering()); addPackage(NewYitianCard()); addPackage(NewNostalgia()); addPackage(NewJoy()); addPackage(NewDisaster()); addPackage(NewJoyEquip()); addScenario(NewGuanduScenario()); addScenario(NewFanchengScenario()); addScenario(NewCoupleScenario()); addScenario(NewHongyanScenario()); addScenario(NewZombieScenario()); addScenario(NewLegendScenario()); addScenario(NewImpasseScenario()); // available game modes modes["02p"] = tr("2 players"); //modes["02pbb"] = tr("2 players (using blance beam)"); modes["02_1v1"] = tr("2 players (KOF style)"); modes["03p"] = tr("3 players"); modes["04p"] = tr("4 players"); modes["04_1v3"] = tr("4 players (Hulao Pass)"); modes["05p"] = tr("5 players"); modes["06p"] = tr("6 players"); modes["06pd"] = tr("6 players (2 renegades)"); modes["06_3v3"] = tr("6 players (3v3)"); modes["07p"] = tr("7 players"); modes["08p"] = tr("8 players"); modes["08pd"] = tr("8 players (2 renegades)"); modes["08boss"] = tr("8 players (boss mode)"); modes["08same"] = tr("8 players (same mode)"); modes["09p"] = tr("9 players"); modes["10p"] = tr("10 players"); //challenge_mode_set = NULL; challenge_mode_set = new ChallengeModeSet(this); //addPackage(challenge_mode_set); translations.insert("bossmode", tr("Boss mode")); connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(deleteLater())); QString error_msg; lua = createLuaState(false, error_msg); if(lua == NULL){ QMessageBox::warning(NULL, tr("Lua script error"), error_msg); exit(1); } }