DimDoors/StevenDimDoors/mod_pocketDim/dungeon/pack/DungeonPackConfig.java
SenseiKiwi e96fc02747 Progress on Implementing Dungeon Packs
Started implementing our support for dungeon packs. The code is not
usable yet and the mod is not functional at this stage. A few additional
changes should make it testable. A significant obstacle to implementing
dungeon packs easily is that DungeonGenerator doesn't have some
necessary information and shouldn't be modified. Even if it is modified,
old serialized instances wouldn't have the new fields initialized. I'm
having to create workarounds until we implement the new save format.

DungeonPack handles all of the logic of selecting a dungeon and
verifying whether its type is valid. It relies on DungeonChainRule and
OptimizedRule to check which dungeons should be generated next given a
list of the dungeons in a chain. DungeonType maps types in packs to ID
numbers and provides a reference to the pack that owns the type.
DungeonPackConfig will carry config information to be passed to the
DungeonPack constructor.
2013-08-04 19:27:34 -04:00

49 lines
707 B
Java

package StevenDimDoors.mod_pocketDim.dungeon.pack;
import java.util.ArrayList;
import java.util.List;
public class DungeonPackConfig
{
public DungeonPackConfig() { }
private DungeonPackConfig(DungeonPackConfig source)
{
}
public void validate()
{
}
public DungeonPackConfig clone()
{
return new DungeonPackConfig(this);
}
public String getName()
{
return null;
}
public List<String> getTypeNames()
{
return null;
}
public boolean allowDuplicatesInChain()
{
return false;
}
public void setRules(Object object) {
// TODO Auto-generated method stub
}
public ArrayList<DungeonChainRule> getRules() {
// TODO Auto-generated method stub
return null;
}
}