Fixed minor bugs in failed attempts to resolve portal bindings. Check

and report errors when attempting to bind entrance portal.
Sanity-check portals in all scenes in the group after bindings are
resolved and report warnings for any still-unbound portals.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@286 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-08-21 01:15:16 +00:00
parent 4b0f742356
commit 56c48c011f
2 changed files with 78 additions and 20 deletions
@@ -1,12 +1,12 @@
//
// $Id: Portal.java,v 1.2 2001/08/16 22:05:01 shaper Exp $
// $Id: Portal.java,v 1.3 2001/08/21 01:15:16 shaper Exp $
package com.threerings.miso.scene;
/**
* The <code>Portal</code> class represents a <code>Location</code> in
* a scene that both leads to a different scene and serves as a
* potential entrance into its containing scene.
* The portal class represents a {@link Location} in a scene that both
* leads to a different scene and serves as a potential entrance into
* its containing scene.
*/
public class Portal extends Location
{
@@ -20,7 +20,7 @@ public class Portal extends Location
public Portal dest;
/**
* Construct an <code>Portal</code> object.
* Construct a portal object.
*
* @param loc the location associated with the portal.
* @param name the portal name.
@@ -44,6 +44,15 @@ public class Portal extends Location
this.dest = dest;
}
/**
* Return whether this portal has a valid destination scene and
* portal.
*/
public boolean hasDestination ()
{
return (sid != MisoScene.SID_INVALID && dest != null);
}
/**
* Return a String representation of this object.
*/