Jadex 0.96

jadex.examples.hunterprey.creature.hunters.ldahunter.potentialfield
Class CreatureModel

java.lang.Object
  extended by jadex.examples.hunterprey.creature.hunters.ldahunter.potentialfield.CreatureModel

public class CreatureModel
extends Object


Field Summary
 int round
          round last round updated
 int x
          x last x of creature
 int y
          y last y of creature
 
Constructor Summary
CreatureModel(Creature creature, int w, int h)
           
 
Method Summary
 double getProbability(int px, int py, int r)
           
 void update(int x2, int y2, int r)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public int x
x last x of creature


y

public int y
y last y of creature


round

public int round
round last round updated

Constructor Detail

CreatureModel

public CreatureModel(Creature creature,
                     int w,
                     int h)
Parameters:
creature -
w -
h -
Method Detail

getProbability

public double getProbability(int px,
                             int py,
                             int r)
Parameters:
px -
py -
r - > round
Returns:
the probability the creature is in px,py in round r

update

public void update(int x2,
                   int y2,
                   int r)
Parameters:
x2 -
y2 -
r -

Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.