Package ise.mace.actions

Examples of ise.mace.actions.Hunt


      logger.log(Level.WARNING, "Agent {0} did not pick a food to hunt",
              dm.getName());
    }
    else
    {
      ec.act(new Hunt(toHunt), this.getId(), authCode);
    }
    dm.setLastHunted(toHunt);
  }
View Full Code Here


    }

    @Override
    public Input handle(Action action, String actorID)
    {
      final Hunt act = (Hunt)action;
      final Food food = dmodel.getFoodById(act.getFoodTypeId());

      // This line gets the agents datamodel
      // Just trust me on that one :P
      final PublicAgentDataModel am = ((AbstractAgent)sim.getPlayer(actorID)).getDataModel();
      if (am.getHuntingTeam() == null)
View Full Code Here

TOP

Related Classes of ise.mace.actions.Hunt

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.