Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
gecco.server.core.Unit

Packages that use Unit
gecco.game.dke |
gecco.server.actionprocessor |
gecco.server.core |
gecco.server.unitmanager |
gecco.server.visibility |

Uses of Unit in gecco.game.dke

Subclasses of Unit in gecco.game.dke
`class` | `BlueWarUnit` BlueWarUnit.java Created: Wed Nov 13 22:29:15 2002
`class` | `GameEventPoint` GameEventPoint.java Created: Wed Feb 05 13:43:31 2003
`class` | `RedWarUnit` RedWarUnit.java Created: Wed Nov 13 22:31:22 2002
`class` | `ScorePoint` ScorePoint.java Created: Wed Feb 05 13:55:17 2003
`class` | `WarUnit`
`class` | `VictoryPoint`

Methods in gecco.game.dke with parameters of type Unit
`void` | `WarUnitEventHandler.handleEvent(UnitEvent event, Unit unit)`
`void` | `GameEventPointEventHandler.handleEvent(UnitEvent event, Unit unit)`

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.
`void` | `ActionProcessor.publicCheckChangedProperties(Unit u)`
`void` | `ActionProcessor.publicCheckActionBlocklist(Unit u)`
`void` | `ActionProcessor.publicCheckChangedPosition(double oldx, double oldy, Unit u)`

Uses of Unit in gecco.server.core

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.
`Unit[]` | `Action.getCooperativeUnits()`

Methods in gecco.server.core with parameters of type 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 the given unit (as well as to all God's Eye roles).
`protected void` | `Action.setArgumentUnit(Unit u)`
`protected void` | `Action.sendEventToUnit(Unit unit, String eventName, int factor)` Sends an event to a given unit.

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.

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
`void` | `VisibilityManager.actionBlocked(Unit unit, ActionDefinition action, boolean isBlocked)` This method should be called whenever an action becomes blocked or unblocked.
`void` | `VisibilityManager.unitPropertyChanged(Unit unit, String key, String newValue)` This method should be called whenever a unit property changes.
`void` | `VisibilityManager.roleMessage(String role, Unit unit, String message)` This method may be called to pass some information to a specific role redarding a unit.
`void` | `VisibilityManager.unitMessage(Unit unit, String message)` This method may be called to pass some information regarding a unit, such as when it has finished an action.
`void` | `VisibilityManager.abortAllActions(Unit unit)`
`boolean` | `VisibilityInfo.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` | `VisibilityInfo.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.
`void` | `VisibilityFilter.updateUnitPosition(Unit unit, double oldX, double oldY, double newX, double newY)` This method is to be called whenever a unit changes its position.
`void` | `VisibilityFilter.deleteUnit(Unit unit, double lastKnownX, double lastKnownY)` This method is to be called whenever a unit is permanently taken off the map (typically, when it is killed).
`void` | `VisibilityFilter.actionBlocked(Unit unit, ActionDefinition action, boolean isBlocked)` This method should be called whenever an action becomes blocked or unblocked.
`void` | `VisibilityFilter.unitMessage(Unit unit, String message)` This method may be called to pass some information to the owner of a unit.
`void` | `VisibilityFilter.abortAllActions(Unit unit)` Abort all actions for a unit
`void` | `VisibilityFilter.roleMessage(String role, Unit unit, String message)` This method may be called to pass some information to a specific role regarding a unit.
`void` | `VisibilityFilter.unitPropertyChanged(Unit unit, String key, String newValue)` This method should be called whenever a unit property changes.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES