Package org.vrspace.server.dto
Class Add
- java.lang.Object
-
- org.vrspace.server.dto.Add
-
- All Implemented Interfaces:
Command
public class Add extends Object implements Command
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Add
addObject(VRObject t)
protected boolean
canEqual(Object other)
boolean
equals(Object o)
ClientResponse
execute(WorldManager world, Client client)
Add objects to the scene, returns List of object identifiers (classname+id pairs)List<VRObject>
getObjects()
List of VRObjects to add.int
hashCode()
void
setObjects(List<VRObject> objects)
List of VRObjects to add.String
toString()
-
-
-
Constructor Detail
-
Add
public Add(Collection<VRObject> objects)
-
Add
public Add(VRObject... objects)
-
Add
public Add()
-
-
Method Detail
-
execute
public ClientResponse execute(WorldManager world, Client client)
Add objects to the scene, returns List of object identifiers (classname+id pairs)
-
canEqual
protected boolean canEqual(Object other)
-
-