mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-17 04:22:47 +00:00
Change-Id: I0cca627373c68d94025647f802a7fa6b419e0aad
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
package com.l2jserver.model.world.capability;
|
||||
|
||||
import com.l2jserver.model.world.AbstractObject;
|
||||
|
||||
/**
|
||||
* Defines an {@link AbstractObject} that is a child of another
|
||||
* {@link AbstractObject}.
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public interface Child<P extends Parent> extends ObjectCapability {
|
||||
public P getParent();
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.l2jserver.model.world.capability;
|
||||
|
||||
import com.l2jserver.model.world.AbstractObject;
|
||||
|
||||
/**
|
||||
* Defines an {@link AbstractObject} that other objects can join to.
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public interface Joinable<T> extends ObjectCapability {
|
||||
/**
|
||||
* Join an <tt>member</tt> to this object.
|
||||
*
|
||||
* @param member
|
||||
* the entering member
|
||||
*/
|
||||
void join(T member);
|
||||
|
||||
/**
|
||||
* Removes the joined <tt>member</tt> from this object
|
||||
*
|
||||
* @param member
|
||||
* the exiting member
|
||||
*/
|
||||
void leave(T member);
|
||||
}
|
||||
@@ -17,27 +17,4 @@ import com.l2jserver.model.world.event.WorldListener;
|
||||
*/
|
||||
public interface Listenable<L extends WorldListener<E>, E extends WorldEvent>
|
||||
extends ObjectCapability {
|
||||
/**
|
||||
* Adds a new listener
|
||||
*
|
||||
* @param listener
|
||||
* the listener
|
||||
*/
|
||||
void addListener(L listener);
|
||||
|
||||
/**
|
||||
* Removes an listener
|
||||
*
|
||||
* @param listener
|
||||
* the listener
|
||||
*/
|
||||
void removeListener(L listener);
|
||||
|
||||
/**
|
||||
* Don't use this method directly. It is called by the event dispatcher.
|
||||
*
|
||||
* @param e
|
||||
* the event
|
||||
*/
|
||||
void dispatch(E e);
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
package com.l2jserver.model.world.capability;
|
||||
|
||||
import com.l2jserver.model.world.AbstractObject;
|
||||
|
||||
/**
|
||||
* Defines an {@link AbstractObject} that is the parent of another
|
||||
* {@link AbstractObject}.
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public interface Parent extends ObjectCapability {
|
||||
}
|
||||
Reference in New Issue
Block a user