Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public void SetNewFollowObj(IBaseGameObj newFollowObj) => _followObj = newFollowObj;
Esempio n. 3
0
 public void SetNewParams(int newWidth, int newHeight, IBaseGameObj newFollowObj)
 {
     SetSize(newWidth, newHeight);
     _followObj = newFollowObj;
 }
Esempio n. 4
0
 public void InvokeCollision(IBaseGameObj other) => Collision?.Invoke(other);
Esempio n. 5
0
 public void InvokeCollision(IBaseGameObj other)
 {
     throw new NotImplementedException();
 }