Class PuzzleEventDispatcher

java.lang.Object
games.stendhal.server.entity.mapstuff.puzzle.PuzzleEventDispatcher

public class PuzzleEventDispatcher extends Object
manages puzzle building blocks
  • Method Details

    • get

      public static PuzzleEventDispatcher get()
      gets the PuzzleEventDispatcher
      Returns:
    • register

      public void register(PuzzleBuildingBlock block)
      registers a building block
      Parameters:
      zone -
      name -
      block -
    • notify

      public void notify(PuzzleBuildingBlock sourceBlock)
      notifies about property changes
      Parameters:
      sourceBlock - PuzzleBuildingBlock which had a property changed
    • getValue

      public Object getValue(String zone, String name, String property)
      gets the value of a property
      Parameters:
      zone - zone name
      name - block name
      property - property
      Returns:
      value
    • parseExpression

      public groovy.lang.Script parseExpression(PuzzleBuildingBlock buildingBlock, String expression)
      parses a Groovy expression
      Parameters:
      buildingBlock - BuildingBlock on which the expression is defined
      expression - expression to parse
      Returns:
      Groovy script