public override UnitInstancePlugin GetInstanceForLoading(ILevelManager level, IUnit unit) { return(Wolf.CreateForLoading(level, unit, this)); }
/// <summary> /// Creates new instance of Wolf distance calculator. /// </summary> /// <param name="wolf">The instance this calculator is calculating for.</param> /// <param name="baseCoef">Coefficient of linear motion speed.</param> /// <param name="angleCoef">Coefficient how much the linear motion speed is affected by angle.</param> /// <param name="teleportCoef">Coefficient of teleport times.</param> public WolfDistCalc(Wolf wolf, float baseCoef, float angleCoef, float teleportCoef) : base(baseCoef, angleCoef) { this.Instance = wolf; this.TeleportCoef = teleportCoef; }
public override UnitInstancePlugin CreateNewInstance(ILevelManager level, IUnit unit) { return(Wolf.CreateNew(level, unit, this)); }
public WolfDistCalcThroughWalls(Wolf wolf) : base(wolf, 1, 1, 1) { CanBreakThrough = new HashSet <ITile>(); }