Package com.tommytony.war.structure

Examples of com.tommytony.war.structure.ZoneWallGuard


  public boolean protectZoneWallAgainstPlayer(Player player) {
    List<BlockFace> nearestWalls = this.getNearestWalls(player.getLocation());
    boolean protecting = false;
    for (BlockFace wall : nearestWalls) {
      ZoneWallGuard guard = this.getPlayerZoneWallGuard(player.getName(), wall);
      if (guard != null) {
        // already protected, need to move the guard
        guard.updatePlayerPosition(player.getLocation());
      } else {
        // new guard
        guard = new ZoneWallGuard(player, War.war, this, wall);
        this.zoneWallGuards.add(guard);
      }
      protecting = true;
    }
    return protecting;
View Full Code Here

TOP

Related Classes of com.tommytony.war.structure.ZoneWallGuard

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.