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;
 }
Example #2
0
 public static Room house_cast(PlaceableObject obj)
 {
     return((object)obj.GetType() == (object)typeof(Room) ? (Room)obj : (Room)null);
 }
Example #3
0
 public static Window house_cast(PlaceableObject obj)
 {
     throw new NotImplementedException();
 }
 public void setPosition(int x, int y)
 {
     PlaceableObject.requireValidPosition(x, y);
     this.m_x = x;
     this.m_y = y;
 }
Example #5
0
 public static Door house_cast(PlaceableObject obj)
 {
     return((object)obj.GetType() == (object)typeof(Door) ? (Door)obj : (Door)null);
 }