Files
narya/src/java/com/threerings/whirled/zone/data/SceneSummary.java
T
Michael Bayne ef2d31db0b Canned vestigal population crap.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2719 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-22 07:29:11 +00:00

45 lines
1.3 KiB
Java

//
// $Id: SceneSummary.java,v 1.6 2003/07/22 07:29:11 mdb Exp $
package com.threerings.whirled.zone.data;
import com.samskivert.util.StringUtil;
import com.threerings.util.DirectionCodes;
import com.threerings.util.DirectionUtil;
import com.threerings.io.Streamable;
/**
* The scene summary class is used to provide info about the connected
* group of scenes that make up a zone. The group of scenes that make up a
* zone is a self-contained set of scenes, connected with one another (by
* portals) but not to any scenes outside the group.
*/
public class SceneSummary implements Streamable
{
/** The id of this scene. */
public int sceneId;
/** The name of this scene. */
public String name;
/** The ids of the scenes to which this scene is connected via
* portals. */
public int[] neighbors;
/** The compass directions in which each of the neighbors lay. The
* direction constants are as defined in {@link DirectionCodes}. */
public int[] neighborDirs;
/**
* Generates a string representation of this instance.
*/
public String toString ()
{
return "[sceneId=" + sceneId + ", name=" + name +
", neighbors=" + StringUtil.toString(neighbors) +
", neighborDirs=" + DirectionUtil.toString(neighborDirs) + "]";
}
}