Package cz.cuni.mff.abacs.burglar.logics.objects.agents

Examples of cz.cuni.mff.abacs.burglar.logics.objects.agents.Guard


              this._activateButton.setText(STR_ACTIVATE + " (" + Player.PENALTY_VENDER_ACTIVATED + ")");
              this._buttons.add(this._activateButton);
            }
            break;
          case GUARD:
            Guard guard = (Guard)object;
            if(guard.isInState(Guard.State.WELL)){
              this._buttons.add(this._dazeButton);
            }
          case BURGLAR:
            if(this._parent._player.getSelectedAgent() == (Agent)object){
              this._showIntentButton.setText(STR_HIDE_INTENT);
View Full Code Here


      this._listener.planningFinished(result, this);
      break;
     
    case GUARD:
     
      Guard guard = (Guard)agent;
      result = this._planner.solveGuardProblem(
          guard,
          this._map,
          emptyList,
          emptyList
View Full Code Here

        builder.append(STR_TAG_END__);
        builder.append(STR_TAG_END_);
     
        break;
      case GUARD:
        Guard guard = (Guard) agent;
        for(Integer room : guard.getAllGoalRooms()){
          generateInlineTag(
              builder,
              '\t' + STR_TAG_VISITED,
              generateObjectName(agent.getId()),
              generateObjectName(room)
          );
          if(guard.getRoomId() == room){
            generateInlineTag(
                builder,
                '\t' + STR_TAG_AGENT_IN,
                generateObjectName(agent.getId()),
                generateObjectName(room)
View Full Code Here

        pathPositions.addAll(routePositionIds);
      }
    }
   
    // create the object
    Guard guard = new Guard(id, position, pathPositions, map);
   
    for(int i = 0; i < rawList.getLength(); i++){
      Node node = rawList.item(i);
     
      // fill the belief base object:
      ifnode.getNodeType() == Node.ELEMENT_NODE &&
        node.getNodeName().equals(STR_BELIEFBASE)
      ){
        Element mind = (Element)node;
        BeliefBase knowledge = guard.getBeliefBase();
        knowledge.seenFromNear(XMLLoader.getPositions(mind, map));
      }
     
      // fill the inventory:
      ifnode.getNodeType() == Node.ELEMENT_NODE &&
        node.getNodeName().equals(STR_INVENTORY)
      ){
        Element inventory = (Element)node;
        List<Item> items = XMLLoader.getItems(inventory, map);
        map.addItems(items);
        guard.addItems(items);
      }
    }
   
    // add the uniform:
    Uniform clothes = new Uniform(map.getNextID(), map);
    guard.addItem(clothes);
    map.addItem(clothes);
   
    if(isStunned)
      guard.daze();
   
    return guard;
  }
View Full Code Here

TOP

Related Classes of cz.cuni.mff.abacs.burglar.logics.objects.agents.Guard

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.