Class DaylightCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.DaylightCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=ENVIRONMENT,
label="Time?")
public class DaylightCondition
extends Object
implements ChatCondition
Checks the current day light phase.
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionDaylightCondition(DaylightPhase... daylightPhases)
creates a new DaytimeCondition -
Method Summary
-
Constructor Details
-
DaylightCondition
creates a new DaytimeCondition- Parameters:
daylightPhases
- one or more daylight phases
-
-
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
-