MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Init

Method Init

Source/Utils/micropather.cpp:461–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459
460
461void PathNode::Init( unsigned _frame,
462 cPosition _state,
463 float _costFromStart,
464 float _estToGoal,
465 PathNode* _parent )
466{
467 state = _state;
468 costFromStart = _costFromStart;
469 estToGoal = _estToGoal;
470 CalcTotalCost();
471 parent = _parent;
472 frame = _frame;
473 inOpen = 0;
474 inClosed = 0;
475}
476
477
478void PathNode::Clear()

Callers 3

GetPathNodeMethod · 0.80
GetNodeNeighborsMethod · 0.80
SolveForNearStatesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected