Uses of Class
gecco.server.core.Unit

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.
 

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.
 

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 the given unit (as well as to all God's Eye roles).
 

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
 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.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.
 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.
 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.