|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Unit | |
gecco.game.firefighter | |
gecco.game.oresund | |
gecco.game.testgame | |
gecco.server.actionprocessor | |
gecco.server.core | |
gecco.server.unitmanager | |
gecco.server.visibility |
Uses of Unit in gecco.game.firefighter |
Subclasses of Unit in gecco.game.firefighter | |
class |
Firefighter
Description of the Class |
Methods in gecco.game.firefighter with parameters of type Unit | |
void |
FirefighterEventHandler.handleEvent(UnitEvent event,
Unit unit)
Description of the Method |
Uses of Unit in gecco.game.oresund |
Subclasses of Unit in gecco.game.oresund | |
class |
BaseStation
Description of the Class |
class |
Helicopter
Description of the Class |
class |
Ship
Description of the Class |
Methods in gecco.game.oresund with parameters of type Unit | |
void |
BaseStationEventHandler.handleEvent(UnitEvent event,
Unit unit)
Description of the Method |
void |
ShipEventHandler.handleEvent(UnitEvent event,
Unit unit)
Description of the Method |
void |
HelicopterEventHandler.handleEvent(UnitEvent event,
Unit unit)
Description of the Method |
Uses of Unit in gecco.game.testgame |
Subclasses of Unit in gecco.game.testgame | |
class |
RadarUnit
Description of the Class |
class |
TestUnit
Description of the Class |
Methods in gecco.game.testgame with parameters of type Unit | |
void |
TestUnitEventHandler.handleEvent(UnitEvent event,
Unit unit)
Description of the Method |
Uses of Unit in gecco.server.actionprocessor |
Methods in gecco.server.actionprocessor with parameters of type Unit | |
void |
ActionProcessor.handleUnitToUnitEvent(Unit unit,
UnitEvent unitEvent)
This method handles an incoming UnitEvent which originates from another unit in the game. |
private void |
ActionProcessor.checkChangedPosition(double oldx,
double oldy,
Unit u)
Check if a given unit has changed from a known last position. |
private void |
ActionProcessor.checkActionBlocklist(Unit u)
Checks the ongoing actions of a given unit and notify the roles (clients) that commands the role about any updates. |
private void |
ActionProcessor.checkChangedProperties(Unit u)
Checks all properties of the given unit, and notify all roles (clients) that observes the unit about any updates. |
private void |
ActionProcessor.checkActionReturn(QueuedAction qA,
Unit u,
ActionReturn actRet)
Check if a given action, executed by a given unit, is completed, aborted or still ongoing, and take the necessary steps in each case. |
private void |
ActionProcessor.sendUnitMessageToAllButCommander(Unit unit,
String unitMessage)
Sends a message to all observers, except the commander, of a given unit. |
private void |
ActionProcessor.sendUnitMessageToAll(Unit unit,
String unitMessage)
Sends a message to all observers of a given unit. |
Uses of Unit in gecco.server.core |
Fields in gecco.server.core declared as Unit | |
private Unit |
Action.unit
The unit that executes the action. |
private Unit |
Action.argUnit
The unit that is the target of the action, if appropriate. |
Methods in gecco.server.core that return Unit | |
Unit |
Action.getUnit()
Gets the unit that executes this action |
Unit |
Action.getArgumentUnit()
Gets the unit that is the target of this action. |
Methods in gecco.server.core with parameters of type Unit | |
protected void |
Action.sendEventToUnit(Unit unit,
String eventName,
int factor)
Sends an event to a given unit. |
abstract void |
EventHandler.handleEvent(UnitEvent event,
Unit unit)
The method that is called by the game engine when a unit of a unit type with this event handler receives a message. |
protected void |
EventHandler.sendUnitMessage(Unit unit,
String unitMessage)
Sends a message to all observers of a given (as well as to all roles with status as god's eye). |
Uses of Unit in gecco.server.unitmanager |
Methods in gecco.server.unitmanager that return Unit | |
Unit |
UnitManager.getUnit(int handle)
Gets a unit, given its handle. |
Unit |
UnitManager.createUnit(String unitTypeName)
Creates a unit of a given unit type. |
Methods in gecco.server.unitmanager with parameters of type Unit | |
Set |
UnitManager.getBlockedActions(Unit u)
Gets the set of blocked actions of a given unit. |
Set |
UnitManager.getUnblockedActions(Unit u)
Gets the set of non-blocked actions of a given unit. |
int |
UnitManager.getRange(Unit u)
Gets the visibility range of a given unit. |
String[] |
UnitManager.getRolesObservingUnit(Unit unit)
Gets the names of all roles that observes a given unit. |
String[] |
UnitManager.getRolesAlienToUnit(Unit unit)
Gets the names of all roles that is alien to a given unit. |
void |
UnitManager.reportObserverForUnit(String role,
Unit u)
Mark a given role as observer for a given unit. |
void |
UnitManager.initializeUnitPosition(Unit unit)
Initialises a unit. |
void |
UnitManager.reportUpdatedUnitPosition(Unit unit,
int oldX,
int oldY)
Report that a units position has been updated. |
boolean |
UnitManager.activateUnit(String role,
Unit unit)
Mark a unit as active for a given role. |
boolean |
UnitManager.deactivateUnit(String role,
Unit unit)
Mark a unit as non-active for a given role. |
void |
UnitManager.deleteUnit(Unit unit,
double lastKnownX,
double lastKnownY)
Delete a unit from the game. |
private void |
UnitManager.addUnit(Unit u)
Adds a unit to the game. |
Uses of Unit in gecco.server.visibility |
Methods in gecco.server.visibility with parameters of type Unit | |
boolean |
VisibilityManager.canSeeAutomaton(String role,
int x,
int y,
Unit excludeUnit)
Description of the Method |
boolean |
VisibilityManager.canSeeUnit(String role,
Unit unit,
Unit excludeUnit)
Description of the Method |
void |
VisibilityManager.updateUnitPosition(Unit unit,
double oldX,
double oldY,
double newX,
double newY)
Description of the Method |
void |
VisibilityManager.deleteUnit(Unit unit,
double lastKnownX,
double lastKnownY)
Description of the Method |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |