operator + method

Score operator +(
  1. Boost boost
)

Implementation

Score operator +(Boost boost) {
  if (_score != null) {
    throw "Score is frozen - new values cannot be adeed";
  }
  boosts.add(boost);
  return this;
}