Example #1
0
  @Override
  public void step(SimState state) {
    // TODO Auto-generated method stub
    super.step(state);
    // System.out.println("Last Meal: " + lastMeal + " timesteps");

    // Visual Processor
    this.vision(state, grid);

    // Death Calculations
    if (this.iDie(state)) return;

    // Reproduction Calculations
    if (this.iReproduce(state)) return;

    // Will I eat?
    /*if(this.willEat(grid, state))
    	return;
    */

  }