MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / resourcePositive

Method resourcePositive

source/game/StarStatCollection.cpp:78–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78bool StatCollection::resourcePositive(String const& resourceName) const {
79 return resource(resourceName) > 0.0f;
80}
81
82void StatCollection::setResource(String const& resourceName, float value) {
83 m_stats.setResourceValue(resourceName, value);

Callers 6

isDeadMethod · 0.45
updateMethod · 0.45
applyDamageMethod · 0.45
shouldDieMethod · 0.45
queryHitMethod · 0.45
shouldDestroyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected