public Camera(IBaseGameObj followObj, int width, int height) { this._shift = new Point(width / 2 - followObj.Position.X, height / 2 - followObj.Position.Y); this._prevShift = _shift; SetNewParams(width, height, followObj); _followObj.Moved += Update; }
public void SetNewFollowObj(IBaseGameObj newFollowObj) => _followObj = newFollowObj;
public void SetNewParams(int newWidth, int newHeight, IBaseGameObj newFollowObj) { SetSize(newWidth, newHeight); _followObj = newFollowObj; }
public void InvokeCollision(IBaseGameObj other) => Collision?.Invoke(other);
public void InvokeCollision(IBaseGameObj other) { throw new NotImplementedException(); }