Ejemplo n.º 1
0
 public ActionMoveUnit2D(IUnit2D unit2D, FloatPoint2D destanationPoint, float speedPerSecond, IActions nextAction = null)
 {
     MovingUnit       = unit2D;
     DestanationPoint = destanationPoint;
     SpeedPerSecond   = speedPerSecond;
     NextAction       = nextAction;
     LastStepTime     = default;
 }
Ejemplo n.º 2
0
 public IUnit2DActions Copy(IUnit2D unit2D = null, IActions nextAction = null) => new ActionMoveUnit2D(unit2D ?? MovingUnit, DestanationPoint, SpeedPerSecond, nextAction ?? NextAction);
Ejemplo n.º 3
0
 public IUnit2DActions Copy(IUnit2D unit2D = null, IActions nextAction = null) => new ActionTurnUnit2D(unit2D ?? TurningUnit, DestanationDegrees, nextAction ?? NextAction);
Ejemplo n.º 4
0
 public ActionTurnUnit2D(IUnit2D unit2D, float destanationDegrees, IActions nextAction = null)
 {
     NextAction         = nextAction;
     DestanationDegrees = destanationDegrees;
     TurningUnit        = unit2D;
 }