Exemplo n.º 1
0
 public void lookAround() {
   if (typeLocal_ == "road") {
     if (map_.getMapLocal_().get((int) pos_.getWidth()).get((int) pos_.getHeight() + 1).getType_()
             == typeLocal_
         && map_.getMapLocal_()
                 .get((int) pos_.getWidth())
                 .get((int) pos_.getHeight() - 1)
                 .getType_()
             == typeLocal_
         && map_.getMapLocal_()
                 .get((int) pos_.getWidth() + 1)
                 .get((int) pos_.getHeight())
                 .getType_()
             == typeLocal_
         && map_.getMapLocal_()
                 .get((int) pos_.getWidth() - 1)
                 .get((int) pos_.getHeight())
                 .getType_()
             == typeLocal_) System.out.println("gg");
   }
 }