// 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)
{
Input result;
if (food.getHuntersRequired() <= 1)
{
result = new HuntResult(actorID, food.getNutrition(),
food.getNutrition(), dmodel.getTime());
}