| 519 | } |
| 520 | |
| 521 | Maybe<Json> Monster::receiveMessage(ConnectionId sendingConnection, String const& message, JsonArray const& args) { |
| 522 | Maybe<Json> result = m_scriptComponent.handleMessage(message, world()->connection() == sendingConnection, args); |
| 523 | if (!result) |
| 524 | result = m_statusController->receiveMessage(message, world()->connection() == sendingConnection, args); |
| 525 | return result; |
| 526 | } |
| 527 | |
| 528 | float Monster::maxHealth() const { |
| 529 | return *m_statusController->resourceMax("health"); |
nothing calls this directly
no test coverage detected