public DungeonParameter() { DistributionTable = new ObjectDistributionTable(); DistributionTable.initTable(GameController.ObjectList); }
public DungeonParameter(float rank,Vector2 mapsize,Vector2 roomsize,int roomcount, int floorcount, float roomsizelowerlimit,float[] elementalpowers,float[] itemdetectionpower,ObjectDistributionTable table) { Rank = rank; MaxMapSize = mapsize; AverageRoomSize = roomsize; AvrateRoomCount = roomcount; MaxFloorCount = floorcount; RoomSizeLowerLimit = roomsizelowerlimit; DistributionTable = table; StartRank = 1; IncreaseRank = 1; ElementalPowers = elementalpowers; ItemDetectionPowers = itemdetectionpower; }
private void createUnknownItemNameTable(ObjectDistributionTable table) { var books = table.getItemFromItemCode(ItemBasis.ItemCode.BOOK); var canes = table.getItemFromItemCode(ItemBasis.ItemCode.CANE); var pots = table.getItemFromItemCode(ItemBasis.ItemCode.POT); var potions = table.getItemFromItemCode(ItemBasis.ItemCode.POTION); var bangles = table.getItemFromItemCode(ItemBasis.ItemCode.BANGLE); BookUnknownNames = new UnknownItemNameElement[books.Length]; CaneUnknownNames = new UnknownItemNameElement[canes.Length]; PotUnknownNames = new UnknownItemNameElement[pots.Length]; PotionUnknownNames = new UnknownItemNameElement[potions.Length]; BangleUnknownNames = new UnknownItemNameElement[bangles.Length]; string[] booknames = UnknownNameList.getBookRandomNames(books.Length); string[] canenames = UnknownNameList.getCaneRandomNames(canes.Length); string[] potnames = UnknownNameList.getPotRandomNames(pots.Length); string[] potionsnames = UnknownNameList.getPotionRandomNames(potions.Length); string[] banglenames = UnknownNameList.getBangleRanromNames(bangles.Length); for (int i = 0; i < books.Length; i++) { BookUnknownNames[i] = new UnknownItemNameElement(books[i].Element, booknames[i]); } for (int i = 0; i < canes.Length; i++) { CaneUnknownNames[i] = new UnknownItemNameElement(canes[i].Element, canenames[i]); } for (int i = 0; i < pots.Length; i++) { PotUnknownNames[i] = new UnknownItemNameElement(pots[i].Element, potnames[i]); } for (int i = 0; i < potions.Length; i++) { PotionUnknownNames[i] = new UnknownItemNameElement(potions[i].Element, potionsnames[i]); } for (int i = 0; i < bangles.Length; i++) { BangleUnknownNames[i] = new UnknownItemNameElement(bangles[i].Element, banglenames[i]); } }