// FOR DEBUG private Party TempMobGenerator() { Mob[] mob = { new Mob(MobGenerator.GetMobData(random, MobType.ZombieFatty, 10)), new Mob(MobGenerator.GetMobData(random, MobType.ZombieFatty, 10)), new Mob(MobGenerator.GetMobData(random, MobType.ZombieFatty, 10)) }; Party mobs = new Party(PartyType.MOB, 10); foreach (Mob p in mob) { mobs.AddCharacter(p); } return(mobs); }
private Party GeneratoMobParty() { Party mobs = new Party(PartyType.MOB, usersLevel); // mob 생성해서 추가할 것 for (int j = 0; j < Config.MAX_PARTY_MEMBER; ++j) { // 조심해! // 몹타입에 따라서 Mob을 상속받아서 구현한다면 // 여기서 타입도 결정해서 그에 맞게 생성해주어야 한다 MobData newMobData = MobGenerator.GetMobData(random, (MobType)random.Next(1, (int)MobType.Length), (ushort)(usersLevel + random.Next( (int)(-usersLevel * Config.LEVEL_RANGE), (int)(usersLevel * Config.LEVEL_RANGE))) ); Mob mob = new Mob(newMobData); mobs.AddCharacter(mob); } return(mobs); }