MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / stop

Method stop

Source/Platformer/Unit.cpp:359–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359void Unit::stop() {
360 if (_currentAction && _currentAction->isDoing()) {
361 _currentAction->stop();
362 _currentAction->_status = Behavior::Status::Success;
363 _currentAction = nullptr;
364 }
365}
366
367bool Unit::isDoing(String name) {
368 return _currentAction && _currentAction->getName() == name && _currentAction->isDoing();

Callers

nothing calls this directly

Calls 2

stopMethod · 0.65
isDoingMethod · 0.45

Tested by

no test coverage detected