mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-11 09:42:54 +00:00
@@ -2,6 +2,7 @@ package com.l2jserver.model.world;
|
||||
|
||||
import java.sql.Date;
|
||||
|
||||
import com.l2jserver.model.id.AccountID;
|
||||
import com.l2jserver.model.id.object.CharacterID;
|
||||
import com.l2jserver.model.id.object.ClanID;
|
||||
import com.l2jserver.model.id.object.PetID;
|
||||
@@ -19,6 +20,10 @@ import com.l2jserver.model.world.character.CharacterInventory;
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public class L2Character extends Player {
|
||||
/**
|
||||
* The account id
|
||||
*/
|
||||
private AccountID accountID;
|
||||
/**
|
||||
* The clan id
|
||||
*/
|
||||
@@ -76,9 +81,19 @@ public class L2Character extends Player {
|
||||
this.attributes = new CharacterCalculatedAttributes(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CharacterID getID() {
|
||||
return (CharacterID) super.getID();
|
||||
/**
|
||||
* @return the account ID
|
||||
*/
|
||||
public AccountID getAccountID() {
|
||||
return accountID;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param accountID
|
||||
* the account ID to set
|
||||
*/
|
||||
public void setAccountID(AccountID accountID) {
|
||||
this.accountID = accountID;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -223,4 +238,9 @@ public class L2Character extends Player {
|
||||
public CharacterFriendList getFriendList() {
|
||||
return friendList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CharacterID getID() {
|
||||
return (CharacterID) super.getID();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.l2jserver.model.world.filter.impl;
|
||||
|
||||
import com.l2jserver.model.id.ID;
|
||||
import com.l2jserver.model.id.ObjectID;
|
||||
import com.l2jserver.model.world.capability.Positionable;
|
||||
import com.l2jserver.model.world.filter.WorldObjectFilter;
|
||||
|
||||
@@ -13,7 +13,7 @@ public class IDFilter implements WorldObjectFilter<Positionable> {
|
||||
/**
|
||||
* The object id
|
||||
*/
|
||||
private final ID id;
|
||||
private final ObjectID<?> id;
|
||||
|
||||
/**
|
||||
* Creates a new instance
|
||||
@@ -21,7 +21,7 @@ public class IDFilter implements WorldObjectFilter<Positionable> {
|
||||
* @param id
|
||||
* the desired object ID
|
||||
*/
|
||||
public IDFilter(final ID id) {
|
||||
public IDFilter(final ObjectID<?> id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user