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

Method getDance

source/game/StarHumanoid.cpp:1576–1582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1574}
1575
1576Maybe<DancePtr> Humanoid::getDance() const {
1577 if (m_dance.isNothing())
1578 return {};
1579
1580 auto danceDatabase = Root::singleton().danceDatabase();
1581 return danceDatabase->getDance(*m_dance);
1582}
1583
1584float Humanoid::getBobYOffset() const {
1585 int bodyStateSeq = getBodyStateSequence();

Callers 2

danceCyclicOrEndedMethod · 0.45
setDanceMethod · 0.45

Calls 3

singletonClass · 0.85
isNothingMethod · 0.80
danceDatabaseMethod · 0.80

Tested by

no test coverage detected