| 36 | |
| 37 | |
| 38 | void TimerGroup::SetNames(const string& baseName) |
| 39 | { |
| 40 | string st; |
| 41 | if (baseName == "AB") |
| 42 | { |
| 43 | // Special format emphasizing the card number within the trick. |
| 44 | for (unsigned i = 0; i < timers.size(); i++) |
| 45 | { |
| 46 | st = baseName + to_string(i % 4) + " " + to_string(i); |
| 47 | timers[i].SetName(st); |
| 48 | } |
| 49 | } |
| 50 | else |
| 51 | { |
| 52 | for (unsigned i = 0; i < timers.size(); i++) |
| 53 | { |
| 54 | st = baseName + to_string(i); |
| 55 | timers[i].SetName(st); |
| 56 | } |
| 57 | } |
| 58 | bname = baseName; |
| 59 | } |
| 60 | |
| 61 | |
| 62 | void TimerGroup::Start(const unsigned no) |
no test coverage detected