MCPcopy Create free account
hub / github.com/assaultcube/AC / addplayer

Method addplayer

source/src/scoreboard.cpp:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 teamscore(int t) : team(t), frags(0), deaths(0), flagscore(0) {}
91
92 void addplayer(playerent *d)
93 {
94 if(!d) return;
95 teammembers.add(d);
96 frags += d->frags;
97 deaths += d->deaths;
98 if(m_flags_) flagscore += d->flagscore;
99 }
100
101 void addscore(discscore &d)
102 {

Callers 3

calcteamscoresFunction · 0.80
renderscoresFunction · 0.80
winnersFunction · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected