Example #1
0
        public EngineSBoss1(Vector2 position, PartController player, IDs id = IDs.DEFAULT) : base(position, player, id)
        {
            CompositePart u  = new RectangularHull();
            CompositePart l  = new RectangularHull();
            CompositePart r  = new RectangularHull();
            CompositePart ld = new RectangularHull();
            CompositePart rd = new RectangularHull();

            Hull.AddPart(u, 1);
            Hull.AddPart(r, 0);
            Hull.AddPart(l, 2);
            Hull.AddPart(new EnginePart(), 3);
            u.AddPart(new RectangularHull(), 0);
            u.AddPart(new RectangularHull(), 2);
            l.AddPart(ld, 3);
            r.AddPart(rd, 3);
            ld.AddPart(new EnginePart(), 3);
            rd.AddPart(new EnginePart(), 3);
        }
        public bool AddPart(Part part, int pos)
        {
            bool r = Hull.AddPart(part, pos);

            return(r);
        }