Exemplo n.º 1
0
        public object GetObject(int type)
        {
            /**auscep1 taisyta 2019-10-30**/
            PlaneFactory f      = new PlaneFactory();
            var          facade = f.GetUnit(1, Owner, Battle, x, endx, y, endy, isHorizontal, type);

            System.Diagnostics.Debug.WriteLine("PlaneAdapter: Returning created plane");
            return(facade);

            //Factory.PlaneFactory facade = new Factory.PlaneFactory(Owner, Battle, x, endx, y, endy, isHorizontal);
            //System.Diagnostics.Debug.WriteLine("PlaneAdapter: Returning created plane");
            //return facade.GetUnit();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns new Plane
        /// </summary>
        /// <returns>Plane</returns>
        public Unit GetPlane(int type)
        {
            PlaneFactory f     = new PlaneFactory();
            var          plane = f.GetUnit(1, Owner, Battle, x, endx, y, endy, isHorizontal, type);

            return(plane);
            /**auscep1 uzkomentinta 20191030**/
            //PlaneFactory factory = new PlaneFactory(Owner, Battle, x, endx, y, endy, isHorizontal);
            //factory.Base();
            //factory.Coordinates();
            //factory.Size();
            //return factory.GetUnit();
        }