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

List of all members.

Public Member Functions

void addQuery (final QueryInterface _interface)
Entity queryForEntity (final String _queryName, final Settings _query)
ArrayList< EntityqueryForEntities (final String _queryName, final Settings _query)
void addEntity (final Entity _entity)
void removeEntity (final Entity _entity)
void clear ()

Protected Attributes

HashMap< String, QueryInterfacequeryInterfaces = new HashMap<String, QueryInterface>()

Detailed Description

The Query System was designed to allow the developer to search the Entities of a GameState in a range of optimal ways depending on what the GameState required.

It contains different ways in how a developer could search the Entities, what queries are available is dependant on which ones the developer adds to the system.


Member Function Documentation

ArrayList<Entity> com.linxonline.mallet.entity.query.QuerySystem.queryForEntities ( final String  _queryName,
final Settings  _query 
)

Return an Entities Based Specify a Query by _queryName And use _query to denote the specific criteria the Query will use to search for the Entities

Implements com.linxonline.mallet.entity.query.SearchInterface.

Entity com.linxonline.mallet.entity.query.QuerySystem.queryForEntity ( final String  _queryName,
final Settings  _query 
)

Return an Entity Based Specify a Query by _queryName And use _query to denote the specific criteria the Query will use to search for the Entity

Implements com.linxonline.mallet.entity.query.SearchInterface.


Member Data Documentation

HashMap horribly slow to iterate over, possibly replace with a tree structure?


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