Package org.vrspace.server.obj
Class VRObject
java.lang.Object
org.vrspace.server.obj.Entity
org.vrspace.server.obj.VRObject
- Direct Known Subclasses:
Background
,Client
,Game
,Terrain
,VRFile
Basic VR Object encapsulates minimal spatial and other properties.
- Author:
- joe
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactive()
void
addChildren
(VRObject... vrObjects) void
addListener
(VRObject obj) protected boolean
boolean
Whether an object is active (can send events).Currently active animationgetMesh()
URL of the file containing the mesh.Permanent objects are always present (e.g.Position in 3D space, used for spatial operations.Custom object propertiesgetScale()
Script that client runs.Temporary objects will be deleted from the database along with their ownergetWorld()
int
hashCode()
boolean
isActive()
boolean
boolean
void
notifyListeners
(VREvent event) passive()
void
processEvent
(VREvent event) This implementation does nothingvoid
removeListener
(VRObject obj) void
Whether an object is active (can send events).void
setAnimation
(Animation animation) Currently active animationvoid
setChildren
(List<VRObject> children) void
setListeners
(ConcurrentHashMap<ID, VRObject> listeners) void
URL of the file containing the mesh.void
setPermanent
(Boolean permanent) Permanent objects are always present (e.g.void
setPosition
(Point position) Position in 3D space, used for spatial operations.void
setProperties
(Map<String, Object> properties) Custom object propertiesvoid
setRotation
(Rotation rotation) void
void
Script that client runs.void
setTemporary
(Boolean temporary) Temporary objects will be deleted from the database along with their ownervoid
void
setWorldId
(Long worldId) toString()
Methods inherited from class org.vrspace.server.obj.Entity
dispose, getId, getObjectId, setId
-
Constructor Details
-
VRObject
-
VRObject
-
VRObject
-
VRObject
public VRObject(double x, double y, double z) -
VRObject
-
VRObject
public VRObject()
-
-
Method Details
-
setWorld
-
addChildren
-
isPermanent
public boolean isPermanent() -
addListener
-
removeListener
-
notifyListeners
-
processEvent
This implementation does nothing- Parameters:
event
- Whatever has changed
-
active
-
passive
-
isActive
public boolean isActive() -
isTemporary
public boolean isTemporary() -
getChildren
-
getWorldId
-
getWorld
-
getPosition
Position in 3D space, used for spatial operations. -
getRotation
-
getScale
-
getPermanent
Permanent objects are always present (e.g. sky) -
getTemporary
Temporary objects will be deleted from the database along with their owner -
getActive
Whether an object is active (can send events). E.g. online users, robots. -
getMesh
URL of the file containing the mesh. -
getScript
Script that client runs. To prevent cross-site scripting, this is a read-only property. -
getAnimation
Currently active animation -
getProperties
Custom object properties -
getListeners
-
setChildren
-
setWorldId
-
setPosition
Position in 3D space, used for spatial operations. -
setRotation
-
setScale
-
setPermanent
Permanent objects are always present (e.g. sky) -
setTemporary
Temporary objects will be deleted from the database along with their owner -
setActive
Whether an object is active (can send events). E.g. online users, robots. -
setMesh
URL of the file containing the mesh. -
setScript
Script that client runs. To prevent cross-site scripting, this is a read-only property. -
setAnimation
Currently active animation -
setProperties
Custom object properties -
setListeners
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-