MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ArcadeMove

Function ArcadeMove

engine/Poseidon/AI/AIArcade.cpp:551–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551static void ArcadeMove(AIGroupContext* context)
552{
553 STATE_PREFIX
554
555 int& index = context->_fsm->Var(0);
556 mission->_destination = GetWaypointPosition(group, index);
557
558 if (group->IsPlayerGroup())
559 {
560 return;
561 }
562
563 group->Move(group->MainSubgroup(), // who
564 mission->_destination, // where
565 Command::Undefined // how
566 );
567}
568
569static bool CheckArcadeMove(AIGroupContext* context, ArcadeFSMStates next)
570{

Callers 1

ArcadeDestroyMoveFunction · 0.85

Calls 5

GetWaypointPositionFunction · 0.85
VarMethod · 0.80
IsPlayerGroupMethod · 0.80
MainSubgroupMethod · 0.80
MoveMethod · 0.45

Tested by

no test coverage detected