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