• 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

21.43
/libs/s25main/nodeObjs/noDisappearingMapEnvObject.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 "noDisappearingMapEnvObject.h"
6
#include "Loader.h"
7
#include "SerializedGameData.h"
8
#include "ogl/glArchivItem_Bitmap.h"
9

10
/**
11
 *  Konstruktor von @p noBase.
12
 *
13
 *  @param[in] x        X-Position
14
 *  @param[in] y        Y-Position
15
 *  @param[in] type     Typ der Ressource
16
 *  @param[in] quantity Menge der Ressource
17
 */
18
noDisappearingMapEnvObject::noDisappearingMapEnvObject(const MapPoint pos, const unsigned short map_id)
2 ✔
19
    : noDisappearingEnvObject(pos, 4000, 1000), map_id(map_id)
2 ✔
20
{}
2 ✔
21

NEW
22
void noDisappearingMapEnvObject::serialize(SerializedGameData& sgd) const
×
23
{
NEW
24
    noDisappearingEnvObject::serialize(sgd);
×
25

26
    sgd.PushUnsignedShort(map_id);
×
27
}
×
28

29
noDisappearingMapEnvObject::noDisappearingMapEnvObject(SerializedGameData& sgd, const unsigned obj_id)
×
30
    : noDisappearingEnvObject(sgd, obj_id), map_id(sgd.PopUnsignedShort())
×
31
{}
×
32

33
/**
34
 *  An x,y zeichnen.
35
 */
NEW
36
void noDisappearingMapEnvObject::draw(DrawPoint drawPt)
×
37
{
38
    // Bild
NEW
39
    LOADER.getMapTexture(map_id)->drawFull(drawPt, getDrawColor());
×
40
    // Schatten
NEW
41
    LOADER.getMapTexture(map_id + 100)->drawFull(drawPt, getDrawShadowColor());
×
42
}
×
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