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; }
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; }
public void AddNewDrawableObject(DrawObject drawObject) { _filling.Add(drawObject); }
public void AddExtraObjectToDraw(DrawObject drawObject) { _extraObjects.Add(drawObject); }