Exemplo n.º 1
0
 public override UnitInstancePlugin GetInstanceForLoading(ILevelManager level, IUnit unit)
 {
     return(Wolf.CreateForLoading(level, unit, this));
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 public override UnitInstancePlugin CreateNewInstance(ILevelManager level, IUnit unit)
 {
     return(Wolf.CreateNew(level, unit, this));
 }
Exemplo n.º 4
0
 public WolfDistCalcThroughWalls(Wolf wolf)
     : base(wolf, 1, 1, 1)
 {
     CanBreakThrough = new HashSet <ITile>();
 }