Class PuzzleBuildingBlock

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

public class PuzzleBuildingBlock extends Object
a puzzle building block
Author:
hendrik
  • Constructor Details

    • PuzzleBuildingBlock

      public PuzzleBuildingBlock(String zoneName, String name, PuzzleEntity entity)
      creates a PuzzleBuildingBlock
      Parameters:
      zoneName - name of zone
      name - unique name of entity in zone
      entity - Entity
  • Method Details

    • defineProperty

      public void defineProperty(String variable, String expression)
      defines a property
      Parameters:
      variable - name of property
      expression - expression
    • put

      public void put(String variable, Object value)
      sets the name of a property
      Parameters:
      variable - name of property
      value - value of property
    • get

      public Object get(String variable)
      gets the value of a property
      Parameters:
      variable - name of property
      Returns:
      value of property
    • get

      public <T> T get(String variable, Class<T> clazz)
      gets the value of a property
      Parameters:
      variable - name of property
      clazz - class to cast the value to
      Returns:
      value of property
    • getZoneName

      public String getZoneName()
      gets the name of the zone
      Returns:
      zone
    • getName

      public String getName()
      gets the name of building block
      Returns:
      name
    • onInputChanged

      public void onInputChanged()
      listens to input change events
    • getDependencies

      public List<String> getDependencies()
      gets a list of dependencies that this entity needs to listen to
      Returns:
      list of dependencies