|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ZoneManager
A zone is a collection of scenes organized into a connected group. A user can wander around within a zone, moving from scene to scene via the standard mechanisms. To move between zones, they must use a special mechanism (like at the dock, they can move from an island zone into their ship zone; or they can move from an island zone into their house zone). A zone provides scene summary information that can be used to display a map of the zone to the client.
| Nested Class Summary | |
|---|---|
static interface |
ZoneManager.ResolutionListener
Used to notify requesters when an asynchronous zone load has completed (successfully or not). |
| Method Summary | |
|---|---|
void |
bodyDidEnterZone(BodyObject body,
int zoneId)
Called when a body has been granted access to a zone. |
String |
ratifyBodyEntry(BodyObject body,
int zoneId)
Called when a body has requested to enter a zone. |
String |
ratifyBodyExit(BodyObject body)
Called when a body has requested to leave a zone. |
void |
resolveZone(int zoneId,
ZoneManager.ResolutionListener listener)
Resolves and delivers the scene summary information for the requested zone. |
| Method Detail |
|---|
void resolveZone(int zoneId,
ZoneManager.ResolutionListener listener)
zoneId - the qualified zone id of the zone to resolve.listener - the listener that should be notified when the zone
is successfully resolved or is known to have failed to resolve.String ratifyBodyExit(BodyObject body)
body - the body object of the user that desires to depart
their current zone (which can be obtained by casting the BodyObject to a ZonedBodyObject).
String ratifyBodyEntry(BodyObject body,
int zoneId)
body - the body object of the user that desires access to the
specified zone.zoneId - the id of the zone to which the user desires access.
void bodyDidEnterZone(BodyObject body,
int zoneId)
body - the body object of the user that was just granted
access to a zone.zoneId - the id of the zone to which they were granted access.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||