示例#1
0
文件: Fort.java 项目: 3mRe/L2Java
 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);
   }
 }
示例#2
0
文件: Fort.java 项目: 3mRe/L2Java
 /**
  * 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);
   }
 }