And finally, narya gets the imports/overrides/regen love.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5241 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -34,7 +34,7 @@ import com.threerings.crowd.data.OccupantInfo;
|
||||
*/
|
||||
public class CrowdClient extends PresentsClient
|
||||
{
|
||||
// documentation inherited
|
||||
@Override
|
||||
protected void sessionConnectionClosed ()
|
||||
{
|
||||
super.sessionConnectionClosed();
|
||||
@@ -46,7 +46,7 @@ public class CrowdClient extends PresentsClient
|
||||
}
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
protected void sessionWillResume ()
|
||||
{
|
||||
super.sessionWillResume();
|
||||
@@ -56,7 +56,7 @@ public class CrowdClient extends PresentsClient
|
||||
_bodyman.updateOccupantStatus(bobj, bobj.location, OccupantInfo.ACTIVE);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@Override
|
||||
protected void sessionDidEnd ()
|
||||
{
|
||||
super.sessionDidEnd();
|
||||
|
||||
@@ -25,7 +25,6 @@ import com.google.inject.Guice;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Injector;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import com.threerings.util.Name;
|
||||
|
||||
import com.threerings.presents.net.AuthRequest;
|
||||
@@ -33,7 +32,6 @@ import com.threerings.presents.server.ClientFactory;
|
||||
import com.threerings.presents.server.ClientResolver;
|
||||
import com.threerings.presents.server.PresentsClient;
|
||||
import com.threerings.presents.server.PresentsServer;
|
||||
|
||||
import com.threerings.crowd.chat.server.ChatProvider;
|
||||
|
||||
import static com.threerings.crowd.Log.log;
|
||||
@@ -56,6 +54,7 @@ public class CrowdServer extends PresentsServer
|
||||
/**
|
||||
* Initializes all of the server services and prepares for operation.
|
||||
*/
|
||||
@Override
|
||||
public void init (Injector injector)
|
||||
throws Exception
|
||||
{
|
||||
|
||||
@@ -193,6 +193,7 @@ public class PlaceManager
|
||||
|
||||
// initialize our delegates
|
||||
applyToDelegates(new DelegateOp(PlaceManagerDelegate.class) {
|
||||
@Override
|
||||
public void apply (PlaceManagerDelegate delegate) {
|
||||
delegate.init(PlaceManager.this, _omgr, _invmgr);
|
||||
}
|
||||
@@ -442,6 +443,7 @@ public class PlaceManager
|
||||
*
|
||||
* @see #toString(StringBuilder)
|
||||
*/
|
||||
@Override
|
||||
public String toString ()
|
||||
{
|
||||
StringBuilder buf = new StringBuilder();
|
||||
@@ -483,6 +485,7 @@ public class PlaceManager
|
||||
{
|
||||
// initialize our delegates
|
||||
applyToDelegates(new DelegateOp(PlaceManagerDelegate.class) {
|
||||
@Override
|
||||
public void apply (PlaceManagerDelegate delegate) {
|
||||
delegate.didInit(_config);
|
||||
}
|
||||
@@ -524,6 +527,7 @@ public class PlaceManager
|
||||
{
|
||||
// let our delegates know that we've started up
|
||||
applyToDelegates(new DelegateOp(PlaceManagerDelegate.class) {
|
||||
@Override
|
||||
public void apply (PlaceManagerDelegate delegate) {
|
||||
delegate.didStartup(_plobj);
|
||||
}
|
||||
@@ -543,6 +547,7 @@ public class PlaceManager
|
||||
|
||||
// let our delegates know that we've shut down
|
||||
applyToDelegates(new DelegateOp(PlaceManagerDelegate.class) {
|
||||
@Override
|
||||
public void apply (PlaceManagerDelegate delegate) {
|
||||
delegate.didShutdown();
|
||||
}
|
||||
@@ -568,6 +573,7 @@ public class PlaceManager
|
||||
|
||||
// let our delegates know what's up
|
||||
applyToDelegates(new DelegateOp(PlaceManagerDelegate.class) {
|
||||
@Override
|
||||
public void apply (PlaceManagerDelegate delegate) {
|
||||
delegate.bodyEntered(bodyOid);
|
||||
}
|
||||
@@ -596,6 +602,7 @@ public class PlaceManager
|
||||
|
||||
// let our delegates know what's up
|
||||
applyToDelegates(new DelegateOp(PlaceManagerDelegate.class) {
|
||||
@Override
|
||||
public void apply (PlaceManagerDelegate delegate) {
|
||||
delegate.bodyLeft(bodyOid);
|
||||
}
|
||||
@@ -622,6 +629,7 @@ public class PlaceManager
|
||||
{
|
||||
// let our delegates know what's up
|
||||
applyToDelegates(new DelegateOp(PlaceManagerDelegate.class) {
|
||||
@Override
|
||||
public void apply (PlaceManagerDelegate delegate) {
|
||||
delegate.bodyUpdated(info);
|
||||
}
|
||||
@@ -637,6 +645,7 @@ public class PlaceManager
|
||||
{
|
||||
// let our delegates know what's up
|
||||
applyToDelegates(new DelegateOp(PlaceManagerDelegate.class) {
|
||||
@Override
|
||||
public void apply (PlaceManagerDelegate delegate) {
|
||||
delegate.placeBecameEmpty();
|
||||
}
|
||||
@@ -656,6 +665,7 @@ public class PlaceManager
|
||||
long idlePeriod = idleUnloadPeriod();
|
||||
if (idlePeriod > 0L && _shutdownInterval == null) {
|
||||
_shutdownInterval = new Interval(_omgr) {
|
||||
@Override
|
||||
public void expired () {
|
||||
log.debug("Unloading idle place '" + where () + "'.");
|
||||
shutdown();
|
||||
@@ -698,6 +708,7 @@ public class PlaceManager
|
||||
|
||||
/** Listens for occupant updates. */
|
||||
protected SetAdapter _bodyUpdater = new SetAdapter() {
|
||||
@Override
|
||||
public void entryUpdated (EntryUpdatedEvent event) {
|
||||
if (event.getName().equals(PlaceObject.OCCUPANT_INFO)) {
|
||||
bodyUpdated((OccupantInfo)event.getEntry());
|
||||
|
||||
@@ -36,7 +36,6 @@ import com.threerings.presents.server.InvocationException;
|
||||
import com.threerings.presents.server.InvocationManager;
|
||||
import com.threerings.presents.server.ShutdownManager;
|
||||
|
||||
import com.threerings.crowd.data.Place;
|
||||
import com.threerings.crowd.data.PlaceConfig;
|
||||
import com.threerings.crowd.data.PlaceObject;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user