Class PuzzleEventDispatcher
java.lang.Object
games.stendhal.server.entity.mapstuff.puzzle.PuzzleEventDispatcher
manages puzzle building blocks
-
Method Summary
Modifier and TypeMethodDescriptionstatic PuzzleEventDispatcherget()gets the PuzzleEventDispatchergets the value of a propertyvoidnotify(PuzzleBuildingBlock sourceBlock) notifies about property changesgroovy.lang.ScriptparseExpression(PuzzleBuildingBlock buildingBlock, String expression) parses a Groovy expressionvoidregister(PuzzleBuildingBlock block) registers a building block
-
Method Details
-
get
gets the PuzzleEventDispatcher- Returns:
-
register
registers a building block- Parameters:
zone-name-block-
-
notify
notifies about property changes- Parameters:
sourceBlock- PuzzleBuildingBlock which had a property changed
-
getValue
gets the value of a property- Parameters:
zone- zone namename- block nameproperty- property- Returns:
- value
-
parseExpression
parses a Groovy expression- Parameters:
buildingBlock- BuildingBlock on which the expression is definedexpression- expression to parse- Returns:
- Groovy script
-