Mallet Engine
2
Entity-Component based game engine, written in Java.
|
Public Member Functions | |
void | addCreator (final CreatorInterface _creator) |
boolean | removeCreator (final CreatorInterface _creator) |
boolean | removeCreator (final String _type) |
Object | create (final Settings _setting) |
Protected Member Functions | |
boolean | exists (final String _type) |
Protected Attributes | |
HashMap< String, CreatorInterface > | creators = new HashMap<String, CreatorInterface>() |
Static Protected Attributes | |
static final String | TYPE = "TYPE" |
Factory is a container class for CreatorInterface objects.
Used by passing a Settings object to create(), which must contain a Key = TYPE with the value as a String.
void com.linxonline.mallet.util.factory.Factory.addCreator | ( | final CreatorInterface | _creator | ) |
Object com.linxonline.mallet.util.factory.Factory.create | ( | final Settings | _setting | ) |
boolean com.linxonline.mallet.util.factory.Factory.exists | ( | final String | _type | ) | [protected] |
boolean com.linxonline.mallet.util.factory.Factory.removeCreator | ( | final CreatorInterface | _creator | ) |
boolean com.linxonline.mallet.util.factory.Factory.removeCreator | ( | final String | _type | ) |
HashMap<String, CreatorInterface> com.linxonline.mallet.util.factory.Factory.creators = new HashMap<String, CreatorInterface>() [protected] |
final String com.linxonline.mallet.util.factory.Factory.TYPE = "TYPE" [static, protected] |