slumber-quest/policies/policy.cpp

17 lines
442 B
C++
Raw Normal View History

2021-05-07 21:36:26 -04:00
#include "policy.h"
Policy::Policy(const std::string& satisfaction, const std::string& dissatisfaction) :
_commentary_on_satisfaction(satisfaction),
_commentary_on_dissatisfaction(dissatisfaction)
{}
Policy::~Policy()
{}
Policy::CheckResult Policy::composeMessageFromResult(bool result) const
{
return {result, (result)
? _commentary_on_satisfaction
: _commentary_on_dissatisfaction};
}