jadex.examples.hunterprey.creature.hunters.ldahunter.potentialfield
Class CreatureModel
java.lang.Object
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 |
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
CreatureModel
public CreatureModel(Creature creature,
int w,
int h)
- Parameters:
creature
- w
- h
-
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
-
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.