toString ftw

This commit is contained in:
StevenRS11 2014-05-15 05:53:28 -04:00
parent 8562456203
commit d020dd384b
2 changed files with 10 additions and 0 deletions

View file

@ -298,4 +298,9 @@ public class DungeonPack
WeightedContainer<DungeonData> resultContainer = (WeightedContainer<DungeonData>) WeightedRandom.getRandomItem(random, weights);
return (resultContainer != null) ? resultContainer.getData() : null;
}
@Override
public String toString()
{
return this.name;
}
}

View file

@ -45,4 +45,9 @@ public class DungeonType implements Comparable<DungeonType>
final int prime = 2039;
return prime * ID;
}
@Override
public String toString()
{
return this.Name+" owned by "+this.Owner;
}
}