public class Portal extends com.threerings.io.SimpleStreamableObject implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
Location |
loc
The location of the portal.
|
short |
portalId
This portal's unique identifier.
|
short |
targetPortalId
The portal identifier of the portal at which a body will enter
the target scene when they "use" this portal, or -1 to specify
that the body enters on the default portal, whatever id it is.
|
int |
targetSceneId
The scene identifier of the scene to which a body will exit when
they "use" this portal.
|
| Constructor and Description |
|---|
Portal() |
| Modifier and Type | Method and Description |
|---|---|
Portal |
clone() |
boolean |
equals(Object other)
Portal equality is determined by portal id.
|
Location |
getLocation()
Returns a location instance configured with the location and
orientation of this portal.
|
Location |
getOppLocation()
Returns a location instance configured with the location and
opposite orientation of this portal.
|
int |
hashCode()
Computes a reasonable hashcode for portal instances.
|
boolean |
isValid()
Returns true if the portal has a potentially valid target scene and
portal id (they are not guaranteed to exist, but they are at least
potentially valid values rather than -1 or 0).
|
public short portalId
public Location loc
public int targetSceneId
public short targetPortalId
public Location getLocation()
public Location getOppLocation()
public boolean isValid()
public boolean equals(Object other)
Copyright © 2015. All rights reserved.