Tagging where ItemInfos are created for debug purposes

Change-Id: Iad3ed8ef4f81f4990c027ab46fd25b03b089babb
This commit is contained in:
Michael Jurka
2011-08-29 14:02:47 -07:00
parent fe1f9b0bd4
commit b60fd0eafb
12 changed files with 65 additions and 39 deletions

View File

@@ -86,10 +86,16 @@ class ItemInfo {
*/
int[] dropPos = null;
ItemInfo() {
/*
* A tag to know where this item was created
*/
String whereCreated;
ItemInfo(String whereCreated) {
this.whereCreated = whereCreated;
}
ItemInfo(ItemInfo info) {
ItemInfo(ItemInfo info, String whereCreated) {
id = info.id;
cellX = info.cellX;
cellY = info.cellY;
@@ -98,6 +104,7 @@ class ItemInfo {
screen = info.screen;
itemType = info.itemType;
container = info.container;
this.whereCreated = whereCreated;
}
/**