|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.server.visibility.VisibilityManager
Description of the Class
Field Summary | |
private AutomatonMap |
am
Description of the Field |
private Client |
ci
Description of the Field |
private String[] |
roles
Description of the Field |
private UnitManager |
um
Description of the Field |
Constructor Summary | |
VisibilityManager(AutomatonMap am,
Client ci,
UnitManager um)
Constructor for the VisibilityManager object |
Method Summary | |
boolean |
canSeeAutomaton(String role,
int x,
int y)
Description of the Method |
boolean |
canSeeAutomaton(String role,
int x,
int y,
Unit excludeUnit)
Description of the Method |
boolean |
canSeePosition(String role,
double x,
double y)
Description of the Method |
boolean |
canSeeUnit(String role,
Unit unit,
Unit excludeUnit)
Description of the Method |
void |
deleteUnit(Unit unit,
double lastKnownX,
double lastKnownY)
Description of the Method |
static void |
main(String[] args)
The main program for the VisibilityManager class |
void |
startGame(String role)
Description of the Method |
private void |
startGodsEyeGame(String godsEyeRole)
Description of the Method |
void |
updateAutomatonState(int x,
int y,
Color c)
Description of the Method |
void |
updateUnitPosition(Unit unit,
double oldX,
double oldY,
double newX,
double newY)
Description of the Method |
Methods inherited from class java.lang.Object |
|
Field Detail |
private String[] roles
private AutomatonMap am
private Client ci
private UnitManager um
Constructor Detail |
public VisibilityManager(AutomatonMap am, Client ci, UnitManager um)
am
- Description of Parameterci
- Description of Parameterum
- Description of ParameterMethod Detail |
public boolean canSeePosition(String role, double x, double y)
role
- Description of Parameterx
- Description of Parametery
- Description of Parameterpublic void updateAutomatonState(int x, int y, Color c)
x
- Description of Parametery
- Description of Parameterc
- Description of Parameterpublic boolean canSeeAutomaton(String role, int x, int y, Unit excludeUnit)
role
- Description of Parameterx
- Description of Parametery
- Description of ParameterexcludeUnit
- Description of Parameterpublic boolean canSeeAutomaton(String role, int x, int y)
role
- Description of Parameterx
- Description of Parametery
- Description of Parameterpublic boolean canSeeUnit(String role, Unit unit, Unit excludeUnit)
role
- Description of Parameterunit
- Description of ParameterexcludeUnit
- Description of Parameterpublic void updateUnitPosition(Unit unit, double oldX, double oldY, double newX, double newY)
unit
- Description of ParameteroldX
- Description of ParameteroldY
- Description of ParameternewX
- Description of ParameternewY
- Description of Parameterpublic void deleteUnit(Unit unit, double lastKnownX, double lastKnownY)
unit
- Description of ParameterlastKnownX
- Description of ParameterlastKnownY
- Description of Parameterpublic void startGame(String role)
role
- Description of Parameterprivate void startGodsEyeGame(String godsEyeRole)
godsEyeRole
- Description of Parameterpublic static void main(String[] args)
args
- The command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |