|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Description of the Class
Method Summary | |
boolean |
canSeeAutomaton(String role,
int x,
int y,
Unit excludeUnit)
Determines if at least one unit of which the given role is an observer can see the given automaton, not counting the given unit. |
boolean |
canSeePosition(String role,
double x,
double y)
Determines if at least one unit of which the given role is an observer can see the given position. |
boolean |
canSeeUnit(String role,
Unit unit,
Unit excludeUnit)
Determines if at least one unit of which the given role is an observer can see the given unit. |
Method Detail |
public boolean canSeePosition(String role, double x, double y)
role
- The role.x
- The X coordinate of the position.y
- The Y coordinate of the position.
public boolean canSeeAutomaton(String role, int x, int y, Unit excludeUnit)
role
- The role.x
- The X coordinate of the automaton.y
- The Y coordinate of the automaton.excludeUnit
- Don't count this unit (may be null).
public boolean canSeeUnit(String role, Unit unit, Unit excludeUnit)
role
- The role.unit
- The unit to be spotted.excludeUnit
- Don't count this unit (may be null).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |