Mallet Engine  2
Entity-Component based game engine, written in Java.
 All Classes Namespaces Files Functions Variables
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
com.linxonline.mallet.util.factory.Factory Class Reference
Inheritance diagram for com.linxonline.mallet.util.factory.Factory:
Inheritance graph
[legend]
Collaboration diagram for com.linxonline.mallet.util.factory.Factory:
Collaboration graph
[legend]

List of all members.

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, CreatorInterfacecreators = new HashMap<String, CreatorInterface>()

Static Protected Attributes

static final String TYPE = "TYPE"

Detailed Description

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.


Member Function Documentation

boolean com.linxonline.mallet.util.factory.Factory.exists ( final String  _type) [protected]

Member Data Documentation

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]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables