public Formation GetLineFormation()
        {
            Formation form = new Formation("Line");
            // Add Captain Position, always 0,0
            form.AddFormationPosition(new Vector2(0, 0));

            form.AddFormationPosition(new Vector2(0, 1));
            form.AddFormationPosition(new Vector2(-1, 1));
            form.AddFormationPosition(new Vector2(-2, 1));
            form.AddFormationPosition(new Vector2(1, 1));

            return form;
        }
        public Formation GetFightingVFormation()
        {
            Formation form = new Formation("Fighting V");
            // Add Captain Position, always 0,0
            form.AddFormationPosition(new Vector2(0, 0));

            form.AddFormationPosition(new Vector2(0, -1));
            form.AddFormationPosition(new Vector2(-1, -1));
            form.AddFormationPosition(new Vector2(-1, -2));
            form.AddFormationPosition(new Vector2(1, -2));

            return form;
        }
        public Formation GetDiamondFormation()
        {
            Formation form = new Formation("Diamond");
            // Add Captain Position, always 0,0
            form.AddFormationPosition(new Vector2(0, 0));

            form.AddFormationPosition(new Vector2(-1, 0));
            form.AddFormationPosition(new Vector2(1, 0));
            form.AddFormationPosition(new Vector2(0, -2));
            form.AddFormationPosition(new Vector2(0, 2));

            return form;
        }
        public Formation GetBoxFormation()
        {
            Formation form = new Formation("Box");
            // Add Captain Position, always 0,0
            form.AddFormationPosition(new Vector2(0,0));

            form.AddFormationPosition(new Vector2(-1, -1));
            form.AddFormationPosition(new Vector2(0, 1));
            form.AddFormationPosition(new Vector2(0, -1));
            form.AddFormationPosition(new Vector2(-1, 1));

            return form;
        }
Esempio n. 5
0
        public Formation GetShieldFormation()
        {
            Formation form = new Formation("Shield");

            // Add Captain Position, always 0,0
            form.AddFormationPosition(new Vector2(0, 0));

            form.AddFormationPosition(new Vector2(0, 1));
            form.AddFormationPosition(new Vector2(-1, 0));
            form.AddFormationPosition(new Vector2(1, 0));
            form.AddFormationPosition(new Vector2(-1, 1));

            return(form);
        }
Esempio n. 6
0
        public Formation GetFightingVFormation()
        {
            Formation form = new Formation("Fighting V");

            // Add Captain Position, always 0,0
            form.AddFormationPosition(new Vector2(0, 0));

            form.AddFormationPosition(new Vector2(0, -1));
            form.AddFormationPosition(new Vector2(-1, -1));
            form.AddFormationPosition(new Vector2(-1, -2));
            form.AddFormationPosition(new Vector2(1, -2));

            return(form);
        }
Esempio n. 7
0
        public Formation GetDiamondFormation()
        {
            Formation form = new Formation("Diamond");

            // Add Captain Position, always 0,0
            form.AddFormationPosition(new Vector2(0, 0));

            form.AddFormationPosition(new Vector2(-1, 0));
            form.AddFormationPosition(new Vector2(1, 0));
            form.AddFormationPosition(new Vector2(0, -2));
            form.AddFormationPosition(new Vector2(0, 2));

            return(form);
        }
Esempio n. 8
0
        public Formation GetBoxFormation()
        {
            Formation form = new Formation("Box");

            // Add Captain Position, always 0,0
            form.AddFormationPosition(new Vector2(0, 0));

            form.AddFormationPosition(new Vector2(-1, -1));
            form.AddFormationPosition(new Vector2(0, 1));
            form.AddFormationPosition(new Vector2(0, -1));
            form.AddFormationPosition(new Vector2(-1, 1));

            return(form);
        }