[Jsokoban-gamedevel] TextLevelSet
Brought to you by:
texx
|
From: Gustavo F. B. <gf...@bb...> - 2002-02-22 10:50:10
|
Hi:
I have seen that kind of levelsets in other programs, and i have a =
question.=20
Do you want make a compatible file or a proprietary one?
Changing the subject, the code seems ok to me.
The only thing that i look is in XMLReaderWriter. If I try to open a =
levelset using an absolute path (in windows), jdom throws a FileNotFound =
Exception,=20
so, i change a little the parse method and the problems dissapear.
public static Document parse(String sFilename) throws =
org.jdom.JDOMException
{
SAXBuilder saxbuilder =3D new SAXBuilder();
saxbuilder.setValidation(XML_VALIDATION);
return saxbuilder.build(new File(sFilename));
}
bye=20
Federico =20
|