Dev: added additional info to some classes for easy debug;

This commit is contained in:
Oleg Agafonov 2021-03-07 17:16:54 +04:00
parent bde6222ea6
commit 0e916b6e29
19 changed files with 133 additions and 19 deletions

View file

@ -144,4 +144,8 @@ public class SpellStack extends ArrayDeque<StackObject> {
return dateLastAdded;
}
@Override
public String toString() {
return this.size() + (this.isEmpty() ? "" : " (top: " + this.getFirst().toString() + ")");
}
}