Class ApproximateAstarMovement
The characters will move, if possible, every two cells for a more natural movement.
Inherited Members
Namespace: AutoBattleFramework.Movement
Assembly: cs.temp.dll.dll
Syntax
public class ApproximateAstarMovement : IBattleMovement
Constructors
ApproximateAstarMovement()
Declaration
public ApproximateAstarMovement()
Methods
MoveTo(GameCharacter, GridCell, Boolean)
Determines the next position to which the character will move. Given a path, the character will move every two cells, for a more natural movement.
Declaration
protected override void MoveTo(GameCharacter ai, GridCell cell, bool forceToCenter = false)
Parameters
Type | Name | Description |
---|---|---|
GameCharacter | ai | |
GridCell | cell | Final destination to which you want to move the character. |
Boolean | forceToCenter | Move the character to the center of the cell. Used when the final destination has been reached and proceeds to attack. |