示例#1
0
 private void SetOppositeMovementDirectionOnReachingIndoorsLimits(IBee bee, Rectangle environmentDimmensions)
 {
     if (_beeCommon.BeeIsIndoors(bee.BeeEnvironmentBehavior))
     {
         var beeHitsLimits = _interactionManager.ObjectAIsBeyondObjectB(bee.BeeIndoorsSize, environmentDimmensions);
         if (beeHitsLimits)
         {
             bee.BeeIndoorsMovementDirection = _movementSelector.GetOppositeMovement(bee.BeeIndoorsMovementDirection);
         }
     }
 }