Handle the BodyService with a BodyManager instead of a concrete BodyProvider.
More dependency injection (or removal in the case of SpeakUtil). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5163 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -42,7 +42,7 @@ public class CrowdClient extends PresentsClient
|
||||
if (_clobj != null) {
|
||||
// note that the user is disconnected
|
||||
BodyObject bobj = (BodyObject)_clobj;
|
||||
BodyProvider.updateOccupantStatus(bobj, bobj.location, OccupantInfo.DISCONNECTED);
|
||||
CrowdServer.bodyman.updateOccupantStatus(bobj, bobj.location, OccupantInfo.DISCONNECTED);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class CrowdClient extends PresentsClient
|
||||
|
||||
// note that the user's active once more
|
||||
BodyObject bobj = (BodyObject)_clobj;
|
||||
BodyProvider.updateOccupantStatus(bobj, bobj.location, OccupantInfo.ACTIVE);
|
||||
CrowdServer.bodyman.updateOccupantStatus(bobj, bobj.location, OccupantInfo.ACTIVE);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
@@ -68,7 +68,7 @@ public class CrowdClient extends PresentsClient
|
||||
|
||||
// reset our status in case this object remains around until they start their next session
|
||||
// (which could happen very soon)
|
||||
BodyProvider.updateOccupantStatus(body, null, OccupantInfo.ACTIVE);
|
||||
CrowdServer.bodyman.updateOccupantStatus(body, null, OccupantInfo.ACTIVE);
|
||||
|
||||
// clear our chat history
|
||||
if (body != null) {
|
||||
|
||||
Reference in New Issue
Block a user