mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-11 01:32:57 +00:00
Change-Id: I0cca627373c68d94025647f802a7fa6b419e0aad
This commit is contained in:
36
src/main/java/com/l2jserver/model/world/Party.java
Normal file
36
src/main/java/com/l2jserver/model/world/Party.java
Normal file
@@ -0,0 +1,36 @@
|
||||
package com.l2jserver.model.world;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.l2jserver.model.id.CharacterID;
|
||||
import com.l2jserver.model.id.ClanID;
|
||||
import com.l2jserver.model.world.capability.Joinable;
|
||||
import com.l2jserver.model.world.capability.Listenable;
|
||||
import com.l2jserver.model.world.party.PartyEvent;
|
||||
import com.l2jserver.model.world.party.PartyListener;
|
||||
import com.l2jserver.util.factory.CollectionFactory;
|
||||
|
||||
public class Party extends AbstractObject implements
|
||||
Listenable<PartyListener, PartyEvent>, Joinable<L2Character> {
|
||||
private final List<PartyListener> listeners = CollectionFactory
|
||||
.newList(PartyListener.class);
|
||||
|
||||
private final List<CharacterID> members = CollectionFactory
|
||||
.newList(CharacterID.class);
|
||||
|
||||
@Override
|
||||
public void join(L2Character member) {
|
||||
members.add(member.getID());
|
||||
}
|
||||
|
||||
@Override
|
||||
public ClanID getID() {
|
||||
return (ClanID) super.getID();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void leave(L2Character member) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user