Beispiel #1
0
 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);
 }
Beispiel #2
0
 public int GetContainerHeight()
 {
     return(gameLayer.GetHeight());
 }
Beispiel #3
0
 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);
 }