| 539 | } |
| 540 | |
| 541 | void Player::notifyCreatureCannotFindFood(Creature& creature) |
| 542 | { |
| 543 | if(mCreatureCannotFindFood <= 0.0f) |
| 544 | { |
| 545 | mCreatureCannotFindFood = CREATURE_CANNOT_FIND_FOOD_TIME_COUNT; |
| 546 | |
| 547 | std::string chatMsg = creature.getName() + " cannot find food"; |
| 548 | ServerNotification *serverNotification = new ServerNotification( |
| 549 | ServerNotificationType::chatServer, this); |
| 550 | serverNotification->mPacket << chatMsg << EventShortNoticeType::genericGameInfo; |
| 551 | ODServer::getSingleton().queueServerNotification(serverNotification); |
| 552 | |
| 553 | std::vector<Seat*> seats; |
| 554 | seats.push_back(getSeat()); |
| 555 | mGameMap->fireRelativeSound(seats, SoundRelativeKeeperStatements::CreatureNoFood); |
| 556 | } |
| 557 | } |
| 558 | |
| 559 | void Player::fireEvents() |
| 560 | { |
no test coverage detected