Sync with L2JServer Feb 7th 2015.

This commit is contained in:
mobius
2015-02-07 23:48:56 +00:00
parent 1e166ca657
commit ecd17fdefb
1949 changed files with 3120 additions and 33466 deletions

View File

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