Package org.vrspace.server.dto
Class Add
java.lang.Object
org.vrspace.server.dto.Add
- All Implemented Interfaces:
 Command,SceneChange
Add is both a Command and a DTO. Add command is issued by a client to add
 some object(s) to the world. The client becomes owner of all added objects.
 Add DTO is sent to clients when new objects (typically users) enter the
 scene. JSON message structure for both cases is the same.
- Author:
 - joe
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanexecute(WorldManager world, Client client) Add objects to the world and to the scene scene, returns List of object identifiers (classname+id pairs).List of VRObjects to add.inthashCode()voidsetObjects(List<VRObject> objects) List of VRObjects to add.toString() 
- 
Constructor Details
- 
Add
 - 
Add
 - 
Add
public Add() 
 - 
 - 
Method Details
- 
addObject
 - 
execute
Add objects to the world and to the scene scene, returns List of object identifiers (classname+id pairs). Performs check if object script url is allowed. - 
getObjects
List of VRObjects to add. - 
setObjects
List of VRObjects to add. - 
equals
 - 
canEqual
 - 
hashCode
public int hashCode() - 
toString
 
 -