Example #1
0
 private void loadFlagPoles() {
   for (L2StaticObjectInstance obj : StaticObjectData.getInstance().getStaticObjects()) {
     if ((obj.getType() == 3) && obj.getName().startsWith(getName())) {
       _flagPole = obj;
       break;
     }
   }
   if (_flagPole == null) {
     throw new NullPointerException("Can't find flagpole for Fort " + this);
   }
 }
Example #2
0
 /**
  * Show or hide flag inside flag pole.
  *
  * @param val
  */
 public void setVisibleFlag(boolean val) {
   L2StaticObjectInstance flagPole = getFlagPole();
   if (flagPole != null) {
     flagPole.setMeshIndex(val ? 1 : 0);
   }
 }