/** * Since certain setups have proximity responses coming from another message stream * Those messages should be shunted to this function and processed */ virtual void processProxCallback(const ObjectReference&destination, const Sirikata::Protocol::IProxCall&callInfo, const void *optionalSerializedProxCall=NULL, size_t optionalSerializedProxCallSize=0) { RoutableMessage delivery; constructMessage(delivery,NULL,&destination,"ProxCall",callInfo,optionalSerializedProxCall,optionalSerializedProxCallSize); deliverMessage(destination,delivery,NULL,0); }
/** * Register a new proximity query. * The callback may come from an ASIO response thread */ virtual void newProxQuery(const ObjectReference&source, const Sirikata::Protocol::INewProxQuery&newProxQueryMsg, const void *optionalSerializedProximityQuery=NULL, size_t optionalSerializedProximitySize=0){ RoutableMessage toSend; constructMessage(toSend,&source,NULL,"NewProxQuery",newProxQueryMsg,optionalSerializedProximityQuery,optionalSerializedProximitySize); sendMessage(source,toSend,NULL,0); }
RobotMessage* MessageFactory::fromCharArray(const char* buf, size_t size) { assert (size > sizeof(int)); int type; _fromCharArray(type, buf); const char* c = buf; RobotMessage* msg = constructMessage(type); cerr << "constructing a message of type" << type << endl; c = msg->fromCharArray(c); assert((c-buf)==size); return msg; }
void EdoChatWindowMessage::applyOptions() { if (getPropertyBool(EWND_MESSAGE_SHOW_AVATAR, true)) { avatar->setVisible (true); } else { avatar->setVisible (false); } messageLabel->setColour (TextEditor::highlightedTextColourId, getPropertyColour(EWND_MESSAGE_FONT_COLOUR, Colours::black)); messageLabel->applyFontToAllText ( EdoRestoreFont (getPropertyString(EWND_MESSAGE_FONT), Font(14)) ); constructMessage(); }
/** * Objects may lose interest in a particular query * when this function returns, no more responses will be given */ virtual void delProxQuery(const ObjectReference&source, const Sirikata::Protocol::IDelProxQuery&delProx, const void *optionalSerializedDelProxQuery=NULL,size_t optionalSerializedDelProxQuerySize=0){ RoutableMessage toSend; constructMessage(toSend,&source,NULL,"DelProxQuery",delProx,optionalSerializedDelProxQuery,optionalSerializedDelProxQuerySize); sendMessage(source,toSend,NULL,0); }
void EdoChatWindowMessage::mergeWithMessage (const String &dataToAdd) { messageText << T("\n") + dataToAdd; constructMessage(); }