public bool NextIntersects(GameObject next) { return next.X1 <= X1+Width && next.Y1 <= Y1+Height && next.Y1+Height > Y1; }
public void AddObject(string name, int x1, int y1) { var obj = new GameObject (name, x1, y1); ObjectsByName [obj.Name] = obj; Objects.Add (obj); }