Binding of Isaac - Afterbirth+ Lua Reference/Guide

Public Member Functions | List of all members
PathFinder Class Reference

## Public Member Functions
| Reset ()
boolean | MoveRandomly (boolean IgnoreStatusEffects)
| MoveRandomlyBoss (boolean IgnoreStatusEffects)
| MoveRandomlyAxisAligned (float Speed, boolean IgnoreStatusEffects)
| FindGridPath (Vector Pos, float Speed, integer PathMarker, boolean UseDirectPath)
boolean | HasPathToPos (Vector Pos, boolean IgnorePoop)
boolean | HasDirectPath ()
| EvadeTarget (Vector TargetPos)
integer | GetEvadeMovementCountdown ()
| ResetMovementTarget ()
| UpdateGridIndex ()
integer | GetGridIndex ()
| SetCanCrushRocks (boolean value)

## Member Function Documentation

## ◆ EvadeTarget()

PathFinder::EvadeTarget | ( | Vector | TargetPos | ) |

## ◆ FindGridPath()

PathFinder::FindGridPath | ( | Vector | Pos,
|  | float | Speed,
|  | integer | PathMarker,
|  | boolean | UseDirectPath
| ) |  |

## ◆ GetEvadeMovementCountdown()

integer PathFinder::GetEvadeMovementCountdown | ( |  | ) |

## ◆ GetGridIndex()

integer PathFinder::GetGridIndex | ( |  | ) |

## ◆ HasDirectPath()

boolean PathFinder::HasDirectPath | ( |  | ) |

## ◆ HasPathToPos()

boolean PathFinder::HasPathToPos | ( | Vector | Pos,
|  | boolean | IgnorePoop
| ) |  |

Used for safe check if any NPC is behind rocks/pits, doesn't disturb class members.

## ◆ MoveRandomly()

boolean PathFinder::MoveRandomly | ( | boolean | IgnoreStatusEffects | ) |

## ◆ MoveRandomlyAxisAligned()

PathFinder::MoveRandomlyAxisAligned | ( | float | Speed,
|  | boolean | IgnoreStatusEffects
| ) |  |

## ◆ MoveRandomlyBoss()

PathFinder::MoveRandomlyBoss | ( | boolean | IgnoreStatusEffects | ) |

## ◆ Reset()

PathFinder::Reset | ( |  | ) |

## ◆ ResetMovementTarget()

PathFinder::ResetMovementTarget | ( |  | ) |

## ◆ SetCanCrushRocks()

PathFinder::SetCanCrushRocks | ( | boolean | value | ) |

## ◆ UpdateGridIndex()

PathFinder::UpdateGridIndex | ( |  | ) |