public interface

ActionHandler

uk.ac.imperial.presage2.core.environment.ActionHandler
Known Indirect Subclasses

Class Overview

An ActionHandler processes an Action in the environment.

Summary

Public Methods
abstract boolean canHandle(Action action)
Check if this Handler can handle the given action.
abstract Object handle(Action action, UUID actor)
Handle the given action.

Public Methods

public abstract boolean canHandle (Action action)

Check if this Handler can handle the given action.

Parameters
action Action to handle
Returns
  • true if it can, false otherwise

public abstract Object handle (Action action, UUID actor)

Handle the given action.

Parameters
action action to handle
actor actor performing this action
Returns
  • May return a further Object to be returned to the actor, or null if not.