コード例 #1
0
 public virtual void setSize(int width, int height)
 {
     width  = JMath.max(1, width);
     height = JMath.max(1, height);
     PlaceableObject.requireValidSize(width, height);
     this.m_width  = width;
     this.m_height = height;
 }
コード例 #2
0
 public static Room house_cast(PlaceableObject obj)
 {
     return((object)obj.GetType() == (object)typeof(Room) ? (Room)obj : (Room)null);
 }
コード例 #3
0
 public static Window house_cast(PlaceableObject obj)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 public void setPosition(int x, int y)
 {
     PlaceableObject.requireValidPosition(x, y);
     this.m_x = x;
     this.m_y = y;
 }
コード例 #5
0
 public static Door house_cast(PlaceableObject obj)
 {
     return((object)obj.GetType() == (object)typeof(Door) ? (Door)obj : (Door)null);
 }