| 521 | } |
| 522 | |
| 523 | void Player::notifyCreatureCannotFindBed(Creature& creature) |
| 524 | { |
| 525 | if(mCreatureCannotFindBed <= 0.0f) |
| 526 | { |
| 527 | mCreatureCannotFindBed = CREATURE_CANNOT_FIND_BED_TIME_COUNT; |
| 528 | |
| 529 | std::string chatMsg = creature.getName() + " cannot find room for a bed"; |
| 530 | ServerNotification *serverNotification = new ServerNotification( |
| 531 | ServerNotificationType::chatServer, this); |
| 532 | serverNotification->mPacket << chatMsg << EventShortNoticeType::genericGameInfo; |
| 533 | ODServer::getSingleton().queueServerNotification(serverNotification); |
| 534 | |
| 535 | std::vector<Seat*> seats; |
| 536 | seats.push_back(getSeat()); |
| 537 | mGameMap->fireRelativeSound(seats, SoundRelativeKeeperStatements::CreatureNoBed); |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | void Player::notifyCreatureCannotFindFood(Creature& creature) |
| 542 | { |
no test coverage detected