internal void AddLayer(float x, float y, ActorLayer g) { if (g.IsBounded()) { x = this.LimitValue(x, g.GetWidth() - GetWidth()); y = this.LimitValue(y, g.GetHeight() - GetHeight()); } this.boundingRect = null; this.SetLayer(g); this.SetLocation(x, y); }
public bool IsBounded() { return(gameLayer.IsBounded()); }