Sync with L2JServer Feb 7th 2015.
This commit is contained in:
@ -18,15 +18,15 @@
|
||||
*/
|
||||
package com.l2jserver.gameserver.model.variables;
|
||||
|
||||
import com.l2jserver.gameserver.model.actor.L2Summon;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
|
||||
/**
|
||||
* NPC Variables implementation.
|
||||
* @author GKR
|
||||
*/
|
||||
public class NpcVariables extends AbstractVariables
|
||||
{
|
||||
public NpcVariables()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInt(String key)
|
||||
{
|
||||
@ -50,4 +50,24 @@ public class NpcVariables extends AbstractVariables
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the stored player.
|
||||
* @param name the name of the variable
|
||||
* @return the stored player or {@code null}
|
||||
*/
|
||||
public L2PcInstance getPlayer(String name)
|
||||
{
|
||||
return getObject(name, L2PcInstance.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the stored summon.
|
||||
* @param name the name of the variable
|
||||
* @return the stored summon or {@code null}
|
||||
*/
|
||||
public L2Summon getSummon(String name)
|
||||
{
|
||||
return getObject(name, L2Summon.class);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user