Added toString() to records; report which record we're failing to add when
such things happen. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1343 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: FringeConfiguration.java,v 1.10 2002/04/15 21:30:56 ray Exp $
|
// $Id: FringeConfiguration.java,v 1.11 2002/05/07 00:05:02 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.miso.tile;
|
package com.threerings.miso.tile;
|
||||||
|
|
||||||
@@ -8,6 +8,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import com.samskivert.util.HashIntMap;
|
import com.samskivert.util.HashIntMap;
|
||||||
|
import com.samskivert.util.StringUtil;
|
||||||
|
|
||||||
import com.threerings.miso.Log;
|
import com.threerings.miso.Log;
|
||||||
|
|
||||||
@@ -45,7 +46,14 @@ public class FringeConfiguration implements Serializable
|
|||||||
{
|
{
|
||||||
return ((base_tsid != 0) && (priority > 0));
|
return ((base_tsid != 0) && (priority > 0));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
/** Generates a string representation of this instance. */
|
||||||
|
public String toString ()
|
||||||
|
{
|
||||||
|
return "[base_tsid=" + base_tsid + ", priority=" + priority +
|
||||||
|
", tilesets=" + StringUtil.toString(tilesets) + "]";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to parse the tileset fringe definitions.
|
* Used to parse the tileset fringe definitions.
|
||||||
@@ -63,6 +71,12 @@ public class FringeConfiguration implements Serializable
|
|||||||
{
|
{
|
||||||
return (fringe_tsid != 0);
|
return (fringe_tsid != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Generates a string representation of this instance. */
|
||||||
|
public String toString ()
|
||||||
|
{
|
||||||
|
return "[fringe_tsid=" + fringe_tsid + ", mask=" + mask + "]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: FringeConfigurationParser.java,v 1.7 2002/04/08 19:40:04 ray Exp $
|
// $Id: FringeConfigurationParser.java,v 1.8 2002/05/07 00:05:02 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.miso.tile.tools.xml;
|
package com.threerings.miso.tile.tools.xml;
|
||||||
|
|
||||||
@@ -60,7 +60,8 @@ public class FringeConfigurationParser extends CompiledConfigParser
|
|||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
Log.warning("A FringeRecord was not added " +
|
Log.warning("A FringeRecord was not added " +
|
||||||
"because it was improperly specified.");
|
"because it was improperly specified " +
|
||||||
|
"[record=" + target + "].");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user