Can't report unhandled events or event just message events because there

are a number of them that just aren't meant to be handled by the place
manager. Alas.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@417 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-09 18:41:01 +00:00
parent 696065f104
commit ce5bcd95d5
@@ -1,5 +1,5 @@
//
// $Id: PlaceManager.java,v 1.15 2001/10/09 17:18:44 mdb Exp $
// $Id: PlaceManager.java,v 1.16 2001/10/09 18:41:01 mdb Exp $
package com.threerings.cocktail.party.server;
@@ -250,26 +250,21 @@ public class PlaceManager implements Subscriber
}
if (handler != null) {
handler.handleEvent(mevt, (PlaceObject)target);
return true;
}
} else if (event instanceof ObjectAddedEvent) {
ObjectAddedEvent oae = (ObjectAddedEvent)event;
if (oae.getName().equals(PlaceObject.OCCUPANTS)) {
bodyEntered(oae.getOid());
return true;
}
} else if (event instanceof ObjectRemovedEvent) {
ObjectRemovedEvent ore = (ObjectRemovedEvent)event;
if (ore.getName().equals(PlaceObject.OCCUPANTS)) {
bodyLeft(ore.getOid());
return true;
}
}
Log.warning("Unhandled place event " + event + ".");
return true;
}