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

Method reset

source/game/StarActorMovementController.cpp:1125–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1123}
1124
1125void PathController::reset() {
1126 m_startPosition = {};
1127 m_targetPosition = {};
1128 m_controlFace = {};
1129 m_pathFinder = {};
1130 m_path = {};
1131 m_edgeIndex = 0;
1132 m_edgeTimer = 0.0;
1133}
1134
1135bool PathController::pathfinding() const {
1136 return m_path.isNothing();

Callers 3

pathMoveMethod · 0.45
tickMasterMethod · 0.45
tickSlaveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected