Class PopupImageFactory
java.lang.Object
games.stendhal.server.entity.mapstuff.sign.PopupImageFactory
- All Implemented Interfaces:
ConfigurableFactory
A base factory for
PopupImage
objects.-
Constructor Details
-
PopupImageFactory
public PopupImageFactory()
-
-
Method Details
-
getImage
Extract the image name from a context.- Parameters:
ctx
- The configuration context. Must provide 'image'.- Returns:
- The image name.
-
getTitle
Extract the sign title from a context.- Parameters:
ctx
- The configuration context. Must provide 'title'.- Returns:
- The sign title.
-
create
Create a shop sign.- Specified by:
create
in interfaceConfigurableFactory
- Parameters:
ctx
- Configuration context.- Returns:
- A PopupImage.
- See Also:
PopupImage
-