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:
@@ -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;
|
package com.threerings.cocktail.party.server;
|
||||||
|
|
||||||
@@ -250,26 +250,21 @@ public class PlaceManager implements Subscriber
|
|||||||
}
|
}
|
||||||
if (handler != null) {
|
if (handler != null) {
|
||||||
handler.handleEvent(mevt, (PlaceObject)target);
|
handler.handleEvent(mevt, (PlaceObject)target);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (event instanceof ObjectAddedEvent) {
|
} else if (event instanceof ObjectAddedEvent) {
|
||||||
ObjectAddedEvent oae = (ObjectAddedEvent)event;
|
ObjectAddedEvent oae = (ObjectAddedEvent)event;
|
||||||
if (oae.getName().equals(PlaceObject.OCCUPANTS)) {
|
if (oae.getName().equals(PlaceObject.OCCUPANTS)) {
|
||||||
bodyEntered(oae.getOid());
|
bodyEntered(oae.getOid());
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (event instanceof ObjectRemovedEvent) {
|
} else if (event instanceof ObjectRemovedEvent) {
|
||||||
ObjectRemovedEvent ore = (ObjectRemovedEvent)event;
|
ObjectRemovedEvent ore = (ObjectRemovedEvent)event;
|
||||||
if (ore.getName().equals(PlaceObject.OCCUPANTS)) {
|
if (ore.getName().equals(PlaceObject.OCCUPANTS)) {
|
||||||
bodyLeft(ore.getOid());
|
bodyLeft(ore.getOid());
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.warning("Unhandled place event " + event + ".");
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user