| 127 | } |
| 128 | |
| 129 | bool CreditSystem::shouldBeShownOnScreen(Credit credit) const noexcept { |
| 130 | if (credit._id < this->_credits.size() && |
| 131 | credit._generation == this->_credits[credit._id].generation) { |
| 132 | return this->_credits[credit._id].showOnScreen; |
| 133 | } |
| 134 | return false; |
| 135 | } |
| 136 | |
| 137 | void CreditSystem::setShowOnScreen(Credit credit, bool showOnScreen) noexcept { |
| 138 | if (credit._id < this->_credits.size() && |
no test coverage detected