Beyond_Beyaan.Screens.WindowInterface.Initialize C# (CSharp) Метод

Initialize() публичный Метод

public Initialize ( int x, int y, int width, int height, StretchableImageType backgroundImage, GameMain gameMain, bool moveable, Random r, string &reason ) : bool
x int
y int
width int
height int
backgroundImage StretchableImageType
gameMain GameMain
moveable bool
r System.Random
reason string
Результат bool
        public bool Initialize(int x, int y, int width, int height, StretchableImageType backgroundImage, GameMain gameMain, bool moveable, Random r, out string reason)
        {
            _xPos = x;
            _yPos = y;
            _windowWidth = width;
            _windowHeight = height;
            _moveable = moveable;

            _moving = false;
            _gameMain = gameMain;

            _backGroundImage = new BBStretchableImage();
            if (!_backGroundImage.Initialize(x, y, width, height, backgroundImage, r, out reason))
            {
                return false;
            }
            reason = null;
            return true;
        }