1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-17 04:22:47 +00:00

Change-Id: I0cca627373c68d94025647f802a7fa6b419e0aad

This commit is contained in:
rogiel
2011-04-30 01:51:36 -03:00
parent f1d8e6588f
commit f454e3c35a
74 changed files with 2744 additions and 255 deletions

View File

@@ -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();
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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 {
}