MCPcopy Create free account
hub / github.com/cuberite/cuberite / AddScore

Method AddScore

src/Scoreboard.cpp:147–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146
147cObjective::Score cObjective::AddScore(const AString & a_Name, cObjective::Score a_Delta)
148{
149 // TODO 2014-01-19 xdot: Potential optimization - Reuse iterator
150 Score NewScore = m_Scores[a_Name] + a_Delta;
151
152 SetScore(a_Name, NewScore);
153
154 return NewScore;
155}
156
157
158

Callers 1

AddPlayerScoreMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected