Example #1
0
        public List <List <IntPoint> > GetDefBubblesPolys()
        {
            List <List <IntPoint> > allPolys = new List <List <IntPoint> >();

            foreach (var service in _engineState.BubbleManagerEngine.ListOfServices)
            {
                allPolys.Add(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter,
                                                                                   service.Width));
            }
            return(allPolys);
        }
Example #2
0
        public List <List <IntPoint> > GetDefRocketsPolys()
        {
            List <List <IntPoint> > allPolys = new List <List <IntPoint> >();

            foreach (var service in _engineState.RocketsCarrierManagerEngine.GetListOfServices())
            {
                allPolys.Add(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter2D,
                                                                                   service.Width));
            }
            return(allPolys);
        }
Example #3
0
        public List <List <IntPoint> > GetDefBumpersPolys()
        {
            List <List <IntPoint> > allPolys = new List <List <IntPoint> >();
            List <BumpRigid>        bumpers  = _engineState.RigidsManagerEngine.
                                               ListOfBoxRigids.Where(item => item is BumpRigid).Cast <BumpRigid>()
                                               .ToList();

            foreach (var service in bumpers)
            {
                allPolys.Add(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter2D,
                                                                                   service.Width));
            }
            return(allPolys);
        }
Example #4
0
 public List <IntPoint> GetDefBumperPoly(BumpRigid bump)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(bump.PositionXNACenter2D,
                                                                  bump.Width));
 }
Example #5
0
 public List <IntPoint> GetDefBubblePoly(BubbleService service)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter,
                                                                  service.Width));
 }
Example #6
0
 public List <IntPoint> GetDefRocketPoly(RocketCarrierService service)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter2D,
                                                                  service.Width));
 }