Class OnePlayerAreaFactory

java.lang.Object
games.stendhal.server.entity.mapstuff.area.OnePlayerAreaFactory
All Implemented Interfaces:
ConfigurableFactory

public class OnePlayerAreaFactory extends Object implements ConfigurableFactory
A base factory for OnePlayerArea objects.
  • Constructor Details

    • OnePlayerAreaFactory

      public OnePlayerAreaFactory()
  • Method Details

    • getHeight

      protected int getHeight(ConfigurableFactoryContext ctx)
      Extracts the height from context.
      Parameters:
      ctx - The configuration context.
      Returns:
      The height, 1 if unspecified.
    • getWidth

      protected int getWidth(ConfigurableFactoryContext ctx)
      Extracts the width from context.
      Parameters:
      ctx - The configuration context.
      Returns:
      The width, 1 if unspecified.
    • create

      public Object create(ConfigurableFactoryContext ctx)
      Create a damaging area.
      Specified by:
      create in interface ConfigurableFactory
      Parameters:
      ctx - Configuration context.
      Returns:
      A OnePlayerArea.
      See Also:
      OnePlayerArea