L2JPREMIUM  5M
com.premium.game.datatables.BufferTable Class Reference

Public Member Functions

void saveSchemes ()
 
void setScheme (int playerId, String schemeName, ArrayList< Integer > list)
 
Map< String, ArrayList< Integer > > getPlayerSchemes (int playerId)
 
List< Integer > getScheme (int playerId, String schemeName)
 
boolean getSchemeContainsSkill (int playerId, String schemeName, int skillId)
 
List< Integer > getSkillsIdsByType (String groupType)
 
List< String > getSkillTypes ()
 
BuffSkillHolder getAvailableBuff (int skillId)
 

Static Public Member Functions

static BufferTable getInstance ()
 

Detailed Description

This class loads available skills and stores players' buff schemes into _schemesTable.

Member Function Documentation

◆ getPlayerSchemes()

Map<String, ArrayList<Integer> > com.premium.game.datatables.BufferTable.getPlayerSchemes ( int  playerId)
inline
Parameters
playerId: The player objectId to check.
Returns
the list of schemes for a given player.

◆ getScheme()

List<Integer> com.premium.game.datatables.BufferTable.getScheme ( int  playerId,
String  schemeName 
)
inline
Parameters
playerId: The player objectId to check.
schemeName: The scheme name to check.
Returns
the List holding skills for the given scheme name and player, or null (if scheme or player isn't registered).

◆ getSchemeContainsSkill()

boolean com.premium.game.datatables.BufferTable.getSchemeContainsSkill ( int  playerId,
String  schemeName,
int  skillId 
)
inline
Parameters
playerId: The player objectId to check.
schemeName: The scheme name to check.
skillId: The skill id to check.
Returns
true if the skill is already registered on the scheme, or false otherwise.

◆ getSkillsIdsByType()

List<Integer> com.premium.game.datatables.BufferTable.getSkillsIdsByType ( String  groupType)
inline
Parameters
groupType: The type of skills to return.
Returns
a list of skills ids based on the given groupType.

◆ getSkillTypes()

List<String> com.premium.game.datatables.BufferTable.getSkillTypes ( )
inline
Returns
a list of all buff types available.

The documentation for this class was generated from the following file: