• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Return-To-The-Roots / s25client / 44076625557

17 Nov 2026 11:43AM UTC coverage: 51.803% (-0.002%) from 51.805%
44076625557

push

github

web-flow
Merge pull request #2018 from Return-To-The-Roots/refactor/lowerCamelCase-methods

Rename Msg_* handlers to lowerCamelCase

8121 of 16693 new or added lines in 565 files covered. (48.65%)

323 existing lines in 133 files now uncovered.

24236 of 46785 relevant lines covered (51.8%)

49647.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

15.0
/libs/s25main/controls/ctrlTimer.cpp
1
// Copyright (C) 2005 - 2021 Settlers Freaks (sf-team at siedler25.org)
2
//
3
// SPDX-License-Identifier: GPL-2.0-or-later
4

5
#include "ctrlTimer.h"
6

7
#include "drivers/VideoDriverWrapper.h"
8

9
ctrlTimer::ctrlTimer(Window* parent, unsigned id, std::chrono::milliseconds timeout)
5 ✔
10
    : Window(parent, id, DrawPoint(0, 0)), timeout_(timeout), timer_(true)
5 ✔
11
{}
5 ✔
12

13
/**
14
 *  start the timer
15
 */
NEW
16
void ctrlTimer::start(std::chrono::milliseconds timeout)
×
17
{
18
    timeout_ = timeout;
×
NEW
19
    start();
×
20
}
×
21

NEW
22
void ctrlTimer::start()
×
23
{
24
    timer_.restart();
×
25
}
×
26

27
/**
28
 *  stop the timer
29
 */
NEW
30
void ctrlTimer::stop()
×
31
{
32
    timer_.stop();
×
33
}
×
34

NEW
35
void ctrlTimer::msgPaintBefore()
×
36
{
NEW
37
    Window::msgPaintBefore();
×
38

39
    if(!timer_.isRunning())
×
40
        return;
×
41

42
    if(timer_.getElapsed() >= timeout_)
×
43
    {
44
        timer_.restart(); // Do this first so parent can stop or change duration
×
NEW
45
        getParent()->msgTimer(getID());
×
46
    }
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc