---------------------------------------------- ON SEND TEXT ----------------------------------------------
| 292 | } |
| 293 | //---------------------------------------------- ON SEND TEXT ---------------------------------------------- |
| 294 | void GameImpl::onSendText(const std::string &text) |
| 295 | { |
| 296 | if ( text.empty() ) return; |
| 297 | |
| 298 | if ( !parseText(text) ) |
| 299 | { |
| 300 | if ( externalModuleConnected ) |
| 301 | { |
| 302 | events.push_back(Event::SendText()); |
| 303 | events.back().setText(text.c_str()); |
| 304 | } |
| 305 | else if( isFlagEnabled(BWAPI::Flag::UserInput) ) |
| 306 | sendText("%s", text.c_str()); |
| 307 | } |
| 308 | } |
| 309 | //---------------------------------------------- ON RECV TEXT ---------------------------------------------- |
| 310 | void GameImpl::onReceiveText(int playerId, const std::string &text) |
| 311 | { |
no test coverage detected