Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 public List <IntPoint> GetDefBumperPoly(BumpRigid bump)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(bump.PositionXNACenter2D,
                                                                  bump.Width));
 }
Exemplo n.º 5
0
 public List <IntPoint> GetDefBubblePoly(BubbleService service)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter,
                                                                  service.Width));
 }
Exemplo n.º 6
0
 public List <IntPoint> GetDefRocketPoly(RocketCarrierService service)
 {
     return(DefinitiveCompPolyHandler.GetDefComponentIntersection(service.PositionXNACenter2D,
                                                                  service.Width));
 }