Exemplo n.º 1
0
 public SmallHouse(Orientation o, int X, int Z, Town t)
 {
     this._o = o;
     if (o == Orientation.NORTH || 0 == Orientation.SOUTH)
         _fp = new Footprint (8, 6);
     else
         _fp = new Footprint (6, 8);
     this._x = X;
     this._z = Z;
     this._id = _idCount++;
     if (!t.IsIDRegisted (2))
         t.RegisterID (2);
 }
Exemplo n.º 2
0
 private byte GetForOrientation(Orientation BO)
 {
     switch (BO) {
     case Orientation.NORTH:
         return 0;
     case Orientation.EAST:
         return 1;
     case Orientation.SOUTH:
         return 2;
     case Orientation.WEST:
         return 3;
     default:
         return 4;
     }
 }