Added some toString methods to help when debugging
authorMedo <smaxein@googlemail.com>
Sun, 01 Apr 2012 15:15:45 +0200
changeset 6848 ec371186361b
parent 6846 bf4c2771caf0
child 6850 a70ce2fad789
Added some toString methods to help when debugging
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Scheme.java
--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Scheme.java	Sun Apr 01 04:37:55 2012 +0200
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Scheme.java	Sun Apr 01 15:15:45 2012 +0200
@@ -232,6 +232,13 @@
 		}
 		return result;
 	}
+
+	@Override
+	public String toString() {
+		return String
+				.format("BasicSettingMeta [command=%s, title=%s, def=%s, min=%s, max=%s, times1000=%s, checkOverMax=%s]",
+						command, title, def, min, max, times1000, checkOverMax);
+	}
 }
 
 // TODO: Extend with additional metadata
@@ -249,4 +256,9 @@
 		}
 		return result;
 	}
+
+	@Override
+	public String toString() {
+		return String.format("GameModMeta [bitmaskIndex=%s]", bitmaskIndex);
+	}
 }
\ No newline at end of file