Class PlayerHasCompletedAchievementsCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerHasCompletedAchievementsCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=STATS,
label="Achievement?")
public class PlayerHasCompletedAchievementsCondition
extends Object
implements ChatCondition
has the player completed the specified number of the specified achievements?
- Author:
- madmetzger
-
Constructor Summary
ConstructorDescriptionPlayerHasCompletedAchievementsCondition(int minimum, String... achievementIdentifiers)
PlayerHasCompletedAchievementsConditionPlayerHasCompletedAchievementsCondition(String... achievementIdentifiers)
PlayerHasCompletedAchievementsCondition -
Method Summary
-
Constructor Details
-
PlayerHasCompletedAchievementsCondition
@Dev public PlayerHasCompletedAchievementsCondition(@Dev(defaultValue="-1") int minimum, String... achievementIdentifiers)PlayerHasCompletedAchievementsCondition- Parameters:
minimum
- required number of achievements, -1 means allachievementIdentifiers
- list of achievements to check
-
PlayerHasCompletedAchievementsCondition
PlayerHasCompletedAchievementsCondition- Parameters:
achievementIdentifiers
- list of achievements to check
-
-
Method Details
-
fire
Description copied from interface:PreTransitionCondition
can the transition be done?- Specified by:
fire
in interfaceChatCondition
- Specified by:
fire
in interfacePreTransitionCondition
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidnpc
- the NPC doing the transition- Returns:
- true, if the transition is possible, false otherwise
-
hashCode
public int hashCode() -
equals
-