slumber-quest/modificators/changeinteractionmessagemod...

21 lines
603 B
C++

#include "changeinteractionmessagemodificator.h"
#include "location.h"
ChangeInteractionMessageModificator::ChangeInteractionMessageModificator()
{}
ChangeInteractionMessageModificator::~ChangeInteractionMessageModificator()
{}
void ChangeInteractionMessageModificator::run() const
{
_location->setInteractionMessage(_new_message);
}
void ChangeInteractionMessageModificator::setDependentObjects(const std::shared_ptr<Location> &location,
const std::string &new_message)
{
_location = location;
_new_message = new_message;
}