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

Method resource

source/game/StarStatCollection.cpp:74–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74float StatCollection::resource(String const& resourceName) const {
75 return m_stats.resourceValue(resourceName);
76}
77
78bool StatCollection::resourcePositive(String const& resourceName) const {
79 return resource(resourceName) > 0.0f;

Callers 8

healthMethod · 0.45
energyMethod · 0.45
breathMethod · 0.45
healthMethod · 0.45
healthMethod · 0.45
makeNpcCallbacksMethod · 0.45
energyMethod · 0.45
updateMethod · 0.45

Calls 1

resourceValueMethod · 0.80

Tested by

no test coverage detected