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 int GetContainerHeight() { return(gameLayer.GetHeight()); }
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); }