Renamed XMLFile* classes to just XML*.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@585 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: XMLComponentRepository.java,v 1.3 2001/11/01 01:40:42 shaper Exp $
|
||||
// $Id: XMLComponentRepository.java,v 1.4 2001/11/02 02:52:16 shaper Exp $
|
||||
|
||||
package com.threerings.miso.scene.xml;
|
||||
|
||||
@@ -20,16 +20,16 @@ import com.threerings.miso.Log;
|
||||
import com.threerings.miso.util.MisoUtil;
|
||||
|
||||
/**
|
||||
* The xml file component repository provides access to character
|
||||
* The xml component repository provides access to character
|
||||
* components obtained from component descriptions stored in an XML
|
||||
* file.
|
||||
*/
|
||||
public class XMLFileComponentRepository implements ComponentRepository
|
||||
public class XMLComponentRepository implements ComponentRepository
|
||||
{
|
||||
/**
|
||||
* Constructs an xml file component repository.
|
||||
* Constructs an xml component repository.
|
||||
*/
|
||||
public XMLFileComponentRepository (Config config, ImageManager imgmgr)
|
||||
public XMLComponentRepository (Config config, ImageManager imgmgr)
|
||||
{
|
||||
// load component types and components
|
||||
String file = config.getValue(COMPONENTS_KEY, DEFAULT_COMPONENTS);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: XMLTileSetRepository.java,v 1.1 2001/11/01 01:40:42 shaper Exp $
|
||||
// $Id: XMLTileSetRepository.java,v 1.2 2001/11/02 02:52:16 shaper Exp $
|
||||
|
||||
package com.threerings.miso.tile;
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.threerings.miso.util.MisoUtil;
|
||||
* Extends general tile set repository functionality to read tile set
|
||||
* descriptions from an XML file.
|
||||
*/
|
||||
public class XMLFileTileSetRepository implements TileSetRepository
|
||||
public class XMLTileSetRepository implements TileSetRepository
|
||||
{
|
||||
// documentation inherited
|
||||
public void init (Config config, ImageManager imgmgr)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: XMLSceneRepository.java,v 1.12 2001/09/21 02:30:35 mdb Exp $
|
||||
// $Id: XMLSceneRepository.java,v 1.13 2001/11/02 02:52:16 shaper Exp $
|
||||
|
||||
package com.threerings.miso.scene.xml;
|
||||
|
||||
@@ -16,16 +16,15 @@ import com.threerings.miso.scene.EditableMisoScene;
|
||||
import com.threerings.miso.util.MisoUtil;
|
||||
|
||||
/**
|
||||
* The <code>XMLFileSceneRepository</code> provides a mechanism for
|
||||
* reading scenes from and writing scenes to XML files. These files will
|
||||
* comprise the template scene files from which actual runtime game scenes
|
||||
* will be constructed.
|
||||
* The xml scene repository provides a mechanism for reading scenes
|
||||
* from and writing scenes to XML files. These files are template
|
||||
* scene files from which actual runtime game scenes will be
|
||||
* constructed.
|
||||
*/
|
||||
public class XMLFileSceneRepository
|
||||
public class XMLSceneRepository
|
||||
{
|
||||
/**
|
||||
* Initialize the XMLFileSceneRepository with the given config and
|
||||
* tile manager objects.
|
||||
* Initializes the xml scene repository.
|
||||
*
|
||||
* @param config the config object.
|
||||
* @param tilemgr the tile manager object.
|
||||
@@ -49,7 +48,7 @@ public class XMLFileSceneRepository
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the path to the scene root directory.
|
||||
* Returns the path to the scene root directory.
|
||||
*/
|
||||
public String getScenePath ()
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: MisoUtil.java,v 1.12 2001/11/01 01:40:42 shaper Exp $
|
||||
// $Id: MisoUtil.java,v 1.13 2001/11/02 02:52:16 shaper Exp $
|
||||
|
||||
package com.threerings.miso.util;
|
||||
|
||||
@@ -19,8 +19,8 @@ import com.threerings.media.tile.*;
|
||||
|
||||
import com.threerings.miso.Log;
|
||||
import com.threerings.miso.scene.*;
|
||||
import com.threerings.miso.scene.xml.XMLFileComponentRepository;
|
||||
import com.threerings.miso.scene.xml.XMLFileSceneRepository;
|
||||
import com.threerings.miso.scene.xml.XMLComponentRepository;
|
||||
import com.threerings.miso.scene.xml.XMLSceneRepository;
|
||||
import com.threerings.miso.tile.*;
|
||||
|
||||
/**
|
||||
@@ -90,15 +90,15 @@ public class MisoUtil
|
||||
public static CharacterManager createCharacterManager (
|
||||
Config config, ImageManager imgmgr)
|
||||
{
|
||||
XMLFileComponentRepository crepo =
|
||||
new XMLFileComponentRepository(config, imgmgr);
|
||||
XMLComponentRepository crepo =
|
||||
new XMLComponentRepository(config, imgmgr);
|
||||
CharacterManager charmgr = new CharacterManager(crepo);
|
||||
charmgr.setCharacterClass(MisoCharacterSprite.class);
|
||||
return charmgr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an <code>XMLFileSceneRepository</code> object, reading
|
||||
* Creates an <code>XMLSceneRepository</code> object, reading
|
||||
* the name of the class to instantiate from the config object.
|
||||
*
|
||||
* @param config the <code>Config</code> object.
|
||||
@@ -106,11 +106,11 @@ public class MisoUtil
|
||||
* @return the new scene repository object or null if an error
|
||||
* occurred.
|
||||
*/
|
||||
public static XMLFileSceneRepository createSceneRepository (
|
||||
public static XMLSceneRepository createSceneRepository (
|
||||
Config config, TileManager tilemgr)
|
||||
{
|
||||
try {
|
||||
XMLFileSceneRepository scenerepo = (XMLFileSceneRepository)
|
||||
XMLSceneRepository scenerepo = (XMLSceneRepository)
|
||||
config.instantiateValue(SCENEREPO_KEY, DEF_SCENEREPO);
|
||||
scenerepo.init(config, tilemgr);
|
||||
return scenerepo;
|
||||
@@ -190,11 +190,11 @@ public class MisoUtil
|
||||
|
||||
/** The default scene repository class name. */
|
||||
protected static final String DEF_SCENEREPO =
|
||||
XMLFileSceneRepository.class.getName();
|
||||
XMLSceneRepository.class.getName();
|
||||
|
||||
/** The default tile set repository class name. */
|
||||
protected static final String DEF_TILESETREPO =
|
||||
XMLFileTileSetRepository.class.getName();
|
||||
XMLTileSetRepository.class.getName();
|
||||
|
||||
/** The config key for the scene repository class. */
|
||||
protected static final String SCENEREPO_KEY = CONFIG_KEY + ".scenerepo";
|
||||
|
||||
Reference in New Issue
Block a user