コード例 #1
0
ファイル: Actor.cs プロジェクト: zx8326123/LGame
 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);
 }
コード例 #2
0
ファイル: Actor.cs プロジェクト: zx8326123/LGame
 public int GetContainerHeight()
 {
     return(gameLayer.GetHeight());
 }
コード例 #3
0
ファイル: Actor.cs プロジェクト: keppelcao/LGame
 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);
 }