Class PuzzleEventDispatcher
java.lang.Object
games.stendhal.server.entity.mapstuff.puzzle.PuzzleEventDispatcher
manages puzzle building blocks
-
Method Summary
Modifier and TypeMethodDescriptionstatic PuzzleEventDispatcher
get()
gets the PuzzleEventDispatchergets the value of a propertyvoid
notify(PuzzleBuildingBlock sourceBlock)
notifies about property changesgroovy.lang.Script
parseExpression(PuzzleBuildingBlock buildingBlock, String expression)
parses a Groovy expressionvoid
register(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
-