Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThePhD/sol2
/ shoot
Method
shoot
examples/source/usertype_advanced.cpp:29–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
27
}
28
29
bool shoot() {
30
if (bullets < 1)
31
return false;
32
--bullets;
33
return true;
34
}
35
36
void set_hp(int value) {
37
hp = value;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected