Manager for blocker scripts such as SingleNodeBlocker.
More...
Manager for blocker scripts such as SingleNodeBlocker.
This is part of the turn based utilities. It can be used for any game, but it is primarily intended for turn based games.
- See also
- TurnBasedAI
-
Utilities for turn-based games
◆ BlockMode
◆ InternalBlock()
Register blocker as being present at the specified node.
Calling this method multiple times will add multiple instances of the blocker to the node.
- Note
- The node will not be blocked immediately. Instead the pathfinding threads will be paused and then the update will be applied. It is however guaranteed to be applied before the next path request is started.
◆ InternalUnblock()
Remove blocker from the specified node.
Will only remove a single instance, calling this method multiple times will remove multiple instances of the blocker from the node.
- Note
- The node will not be unblocked immediately. Instead the pathfinding threads will be paused and then the update will be applied. It is however guaranteed to be applied before the next path request is started.
◆ NodeContainsAnyExcept()
True if the node contains any blocker which is not included in the selector list.
◆ NodeContainsAnyOf()
True if the node contains any blocker which is included in the selector list.
◆ Start()
◆ blocked
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/TurnBased/BlockManager.cs