Interface AddListener
-
- All Known Implementing Classes:
GridAddListener
,NetAddListener
,SpaceAddListener
public interface AddListener
Deprecated.2D piccolo based code is being removedListens for agent add events.- Author:
- Nick Collier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description PEditorEventListener
getAddHandler()
Deprecated.Gets the PInputEvent handler that will handle the gui part of the adding.void
postAdd()
Deprecated.Called immediately after the agent has been added.boolean
preAdd(Object obj, double... location)
Deprecated.Called immediately prior to an agent being added.
-
-
-
Method Detail
-
preAdd
boolean preAdd(Object obj, double... location)
Deprecated.Called immediately prior to an agent being added.- Parameters:
obj
- the object that will be addedlocation
- the location at which the agent should be added. @return true if an object can be added to the specified location, otherwise false.
-
postAdd
void postAdd()
Deprecated.Called immediately after the agent has been added.
-
getAddHandler
PEditorEventListener getAddHandler()
Deprecated.Gets the PInputEvent handler that will handle the gui part of the adding.- Returns:
- the PInputEvent handler that will handle the gui part of the adding.
-
-