You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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;
}