Esempio n. 1
0
        public override List<DrawObject> GetDrawableObjects()
        {
            List<DrawObject> drawList = new List<DrawObject>();

            System.Drawing.Image loading = new System.Drawing.Bitmap(System.IO.Path.Combine("Images", "Loading.png"));

            DrawObject drawO = new DrawObject(loading, _cameraSystem.OwnCenter.X, _cameraSystem.OwnCenter.Y, 1);
            drawList.Add(drawO);

            return drawList;
        }
Esempio n. 2
0
        public DrawObject ConvertToDrawObject(Rectangle screenRec, float centerX, float centerY)
        {
            // Always draw "full" image, so don't care about zoom
            // Check camera has moved, else use old image
            if (_width != screenRec.Width || _height != screenRec.Height || _x != screenRec.Location.X || _y != screenRec.Location.Y)
            {
                _obj = new DrawObject(CurrentView(screenRec), centerX, centerY, 1);
                _width = screenRec.Width;
                _height = screenRec.Height;
                _x = screenRec.Location.X;
                _y = screenRec.Location.Y;
            }

            return _obj;
        }
Esempio n. 3
0
 public void AddNewDrawableObject(DrawObject drawObject)
 {
     _filling.Add(drawObject);
 }
Esempio n. 4
0
 public void AddExtraObjectToDraw(DrawObject drawObject)
 {
     _extraObjects.Add(drawObject);
 }