Canned vestigal population crap.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2719 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SceneSummary.java,v 1.5 2002/12/20 23:41:27 mdb Exp $
|
// $Id: SceneSummary.java,v 1.6 2003/07/22 07:29:11 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.whirled.zone.data;
|
package com.threerings.whirled.zone.data;
|
||||||
|
|
||||||
@@ -12,9 +12,9 @@ import com.threerings.io.Streamable;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The scene summary class is used to provide info about the connected
|
* The scene summary class is used to provide info about the connected
|
||||||
* group of scenes that make up an island. The group of scenes that make
|
* group of scenes that make up a zone. The group of scenes that make up a
|
||||||
* up an island is a self-contained set of scenes, connected with one
|
* zone is a self-contained set of scenes, connected with one another (by
|
||||||
* another (by portals) but not to any scenes outside the group.
|
* portals) but not to any scenes outside the group.
|
||||||
*/
|
*/
|
||||||
public class SceneSummary implements Streamable
|
public class SceneSummary implements Streamable
|
||||||
{
|
{
|
||||||
@@ -32,24 +32,6 @@ public class SceneSummary implements Streamable
|
|||||||
* direction constants are as defined in {@link DirectionCodes}. */
|
* direction constants are as defined in {@link DirectionCodes}. */
|
||||||
public int[] neighborDirs;
|
public int[] neighborDirs;
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the population of this scene summary instance. This is
|
|
||||||
* synchronized because the population can be updated by a background
|
|
||||||
* thread.
|
|
||||||
*/
|
|
||||||
public synchronized int getPopulation ()
|
|
||||||
{
|
|
||||||
return _population;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Used to set the population of this scene summary instance.
|
|
||||||
*/
|
|
||||||
public synchronized void setPopulation (int population)
|
|
||||||
{
|
|
||||||
_population = population;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates a string representation of this instance.
|
* Generates a string representation of this instance.
|
||||||
*/
|
*/
|
||||||
@@ -57,10 +39,6 @@ public class SceneSummary implements Streamable
|
|||||||
{
|
{
|
||||||
return "[sceneId=" + sceneId + ", name=" + name +
|
return "[sceneId=" + sceneId + ", name=" + name +
|
||||||
", neighbors=" + StringUtil.toString(neighbors) +
|
", neighbors=" + StringUtil.toString(neighbors) +
|
||||||
", neighborDirs=" + DirectionUtil.toString(neighborDirs) +
|
", neighborDirs=" + DirectionUtil.toString(neighborDirs) + "]";
|
||||||
", pop=" + _population + "]";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The number of people currently occupying this scene. */
|
|
||||||
protected int _population;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user