Package org.vrspace.server.obj
Class Bot
java.lang.Object
org.vrspace.server.obj.Entity
org.vrspace.server.obj.VRObject
org.vrspace.server.obj.Client
org.vrspace.server.obj.User
org.vrspace.server.obj.Bot
- Direct Known Subclasses:
BotLibre
A Bot is a Client that has no session. It does have own scene, and observes
all events in the scene. It also responds to something that user(s) write.
- Author:
- joe
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getLang()
getParameter
(String key) Returns a parameter from parameter mapabstract reactor.core.publisher.Mono<String>
getResponseAsync
(Client c, String query) getUrl()
int
hashCode()
void
objectsAdded
(List<VRObject> objects) New objects in the scene, typically a client that has arrived.void
objectsRemoved
(List<Map<String, Long>> objects) Objects removed from the scene, typically a client that has left.void
processEvent
(VREvent event) Process an event.void
Get response to something that a client "said", and write itabstract void
selfTest()
Self test runs on server startup.void
Scene management method, called when the scene changes.void
void
void
setParameterMap
(Map<String, String> parameterMap) void
toString()
void
Utility method - "say" something.Methods inherited from class org.vrspace.server.obj.User
createScene, getLeftArmPos, getLeftArmRot, getRightArmPos, getRightArmRot, isHumanoid, isVideo, setHumanoid, setLeftArmPos, setLeftArmRot, setRightArmPos, setRightArmRot, setVideo
Methods inherited from class org.vrspace.server.obj.Client
clearToken, getIdentity, getMapper, getName, getPrivateMapper, getScene, getSceneProperties, getSession, getToken, getTokens, getUserHeight, getWriteBack, isGuest, setGuest, setIdentity, setMapper, setName, setPrivateMapper, setScene, setSceneProperties, setSession, setToken, setTokens, setUserHeight, setWriteBack
Methods inherited from class org.vrspace.server.obj.VRObject
active, addChildren, addListener, getActive, getAnimation, getChildren, getListeners, getMesh, getPermanent, getPosition, getProperties, getRotation, getScale, getScript, getTemporary, getWorld, getWorldId, isActive, isPermanent, isTemporary, notifyListeners, passive, removeListener, setActive, setAnimation, setChildren, setListeners, setMesh, setPermanent, setPosition, setProperties, setRotation, setScale, setScript, setTemporary, setWorld, setWorldId
Methods inherited from class org.vrspace.server.obj.Entity
dispose, getId, getObjectId, setId
-
Constructor Details
-
Bot
public Bot()
-
-
Method Details
-
getParameter
Returns a parameter from parameter map -
selfTest
Self test runs on server startup. Exceptions are logged but otherwise ignored.- Throws:
Exception
-
getResponseAsync
-
respondTo
Get response to something that a client "said", and write it -
write
Utility method - "say" something. -
processEvent
Process an event. If that's something that a user wrote, calls respondTo method. Other events are ignored.- Overrides:
processEvent
in classClient
- Parameters:
event
- Whatever has changed
-
objectsAdded
New objects in the scene, typically a client that has arrived. This implementation does nothing, utility method for subclasses. -
objectsRemoved
Objects removed from the scene, typically a client that has left. This implementation does nothing, utility method for subclasses.- Parameters:
objects
-
-
sendMessage
Scene management method, called when the scene changes.- Overrides:
sendMessage
in classClient
-
toString
-
getGender
-
getLang
-
getUrl
-
getParameterMap
-
setGender
-
setLang
-
setUrl
-
setParameterMap
-
equals
-
canEqual
-
hashCode
public int hashCode()
-