|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.micro.examples.hunterprey.CreatureActionComparator
public class CreatureActionComparator
Sort creature actions to execute hunters before preys.
| Field Summary | |
|---|---|
protected IEnvironmentSpace |
space
The space. |
| Constructor Summary | |
|---|---|
CreatureActionComparator(IEnvironmentSpace space)
Create a new creature action comparator. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Return a negative number when the first action should be executed before the second. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Field Detail |
|---|
protected IEnvironmentSpace space
| Constructor Detail |
|---|
public CreatureActionComparator(IEnvironmentSpace space)
| Method Detail |
|---|
public int compare(java.lang.Object obj1,
java.lang.Object obj2)
compare in interface java.util.Comparator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||