Examples of canBattle()


Examples of org.pokenet.server.backend.entity.NonPlayerChar.canBattle()

             * Loop through every npc on the map
             * If they're sleeping, check if its time to wake them
             */
            for(int i = 0; i < m.getNpcs().size(); i++) {
              n = m.getNpcs().get(i);
              if(n != null && !n.canBattle() &&
                  System.currentTimeMillis() - n.getLastBattleTime()
                  >= 300000 + r.nextInt(300000)) {
                n.setLastBattleTime(0);
              }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.