public ActionMoveUnit2D(IUnit2D unit2D, FloatPoint2D destanationPoint, float speedPerSecond, IActions nextAction = null) { MovingUnit = unit2D; DestanationPoint = destanationPoint; SpeedPerSecond = speedPerSecond; NextAction = nextAction; LastStepTime = default; }
public IUnit2DActions Copy(IUnit2D unit2D = null, IActions nextAction = null) => new ActionMoveUnit2D(unit2D ?? MovingUnit, DestanationPoint, SpeedPerSecond, nextAction ?? NextAction);
public IUnit2DActions Copy(IUnit2D unit2D = null, IActions nextAction = null) => new ActionTurnUnit2D(unit2D ?? TurningUnit, DestanationDegrees, nextAction ?? NextAction);
public ActionTurnUnit2D(IUnit2D unit2D, float destanationDegrees, IActions nextAction = null) { NextAction = nextAction; DestanationDegrees = destanationDegrees; TurningUnit = unit2D; }