public static function createEntities() { $factory = new ExceptionalityPropertiesFactory(); return [new Exceptionality(PlayerDecision::getIt(), $fate = FateOfGoodRear::getIt(), $factory->createChosenProperties($fate, ProfessionFirstLevel::createFirstLevel(Fighter::getIt()), 0, 1, 1, 0, 0, 1)), $factory->createChosenProperties(FateOfCombination::getIt(), ProfessionFirstLevel::createFirstLevel(Wizard::getIt()), 1, 1, 1, 1, 1, 1), $factory->createFortuneProperties(FateOfExceptionalProperties::getIt(), ProfessionFirstLevel::createFirstLevel(Thief::getIt()), 1, 3, 6, 5, 4, 2, new BasePropertiesFactory())]; }
protected function createEntitiesToPersist() { return [new SomeEntityWithProfessions(Fighter::getIt(), null, null, null, null, null, Fighter::getIt()), new SomeEntityWithProfessions(null, Thief::getIt(), null, null, null, null, Thief::getIt()), new SomeEntityWithProfessions(null, null, Wizard::getIt(), null, null, null, Wizard::getIt()), new SomeEntityWithProfessions(null, null, null, Priest::getIt(), null, null, Priest::getIt()), new SomeEntityWithProfessions(null, null, null, null, Theurgist::getIt(), null, Theurgist::getIt()), new SomeEntityWithProfessions(null, null, null, null, null, Ranger::getIt(), Ranger::getIt())]; }
/** * @return array */ public static function createEntities() { $professionLevels = new ProfessionLevels(ProfessionZeroLevel::createZeroLevel(Commoner::getIt()), ProfessionFirstLevel::createFirstLevel($profession = Theurgist::getIt())); $professionLevels->addLevel(ProfessionNextLevel::createNextLevel($profession, LevelRank::getIt(2), Strength::getIt(1), Agility::getIt(0), Knack::getIt(0), Will::getIt(0), Intelligence::getIt(1), Charisma::getIt(0))); return [ProfessionZeroLevel::createZeroLevel(Commoner::getIt()), ProfessionFirstLevel::createFirstLevel(Fighter::getIt()), ProfessionNextLevel::createNextLevel(Wizard::getIt(), LevelRank::getIt(2), Strength::getIt(1), Agility::getIt(1), Knack::getIt(0), Will::getIt(0), Intelligence::getIt(0), Charisma::getIt(0)), $professionLevels]; }
protected function createEntitiesToPersist() { $tables = new Tables(); return array_merge([self::createSkillsEntity($tables), ProfessionFirstLevel::createFirstLevel(Theurgist::getIt()), ProfessionNextLevel::createNextLevel(Priest::getIt(), LevelRank::getIt(2), Strength::getIt(0), Agility::getIt(0), Knack::getIt(0), Will::getIt(1), Intelligence::getIt(0), Charisma::getIt(1)), ProfessionLevels::createIt(ProfessionFirstLevel::createFirstLevel($profession = Fighter::getIt()), [ProfessionNextLevel::createNextLevel($profession, LevelRank::getIt(2), Strength::getIt(0), Agility::getIt(1), Knack::getIt(0), Will::getIt(0), Intelligence::getIt(1), Charisma::getIt(0)), ProfessionNextLevel::createNextLevel($profession, LevelRank::getIt(3), Strength::getIt(1), Agility::getIt(0), Knack::getIt(0), Will::getIt(0), Intelligence::getIt(0), Charisma::getIt(1))])], self::createPhysicalSkillEntities($tables, ProfessionFirstLevel::createFirstLevel(Wizard::getIt())), self::createPsychicalSkillEntities($tables, ProfessionFirstLevel::createFirstLevel(Thief::getIt())), self::createCombinedSkillEntities($tables, ProfessionFirstLevel::createFirstLevel(Ranger::getIt()))); }