Package org.pokenet.server.battle.impl

Examples of org.pokenet.server.battle.impl.NpcBattleLauncher


        if(n.getX() == p.getX()) {
          /* Same column */
          if(n.getY() > p.getY()) {
            /* NPC is above the player */
            if(n.getFacing() == Direction.Up && n.canSee(p)) {
              NpcBattleLauncher l = new NpcBattleLauncher(n, p);
              l.start();
              return true;
            }
          } else {
            /* NPC is below the player */
            if(n.getFacing() == Direction.Down && n.canSee(p)) {
              NpcBattleLauncher l = new NpcBattleLauncher(n, p);
              l.start();
              return true;
            }
          }
        } else if(n.getY() == p.getY()) {
          /* Same row */
          if(n.getX() > p.getX()) {
            /* NPC is right of the player */
            if(n.getFacing() == Direction.Left && n.canSee(p)) {
              NpcBattleLauncher l = new NpcBattleLauncher(n, p);
              l.start();
              return true;
            }
          } else {
            /* NPC is left of the player */
            if(n.getFacing() == Direction.Right && n.canSee(p)) {
              NpcBattleLauncher l = new NpcBattleLauncher(n, p);
              l.start();
              return true;
            }
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.pokenet.server.battle.impl.NpcBattleLauncher

Copyright © 2018 www.massapicom. 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.