Interface EntityFactory
public interface EntityFactory
Creates a game's own entity types from level JSON, for types
LevelData does
not know. Pass one to LevelData#createWorld(long, EntityFactory).-
Method Summary
-
Method Details
-
create
Creates an entity, or declines.
Parameters
id: the id to give ittype: thetypefieldx: the left edge of its cell, fixed pointy: the top edge of its cell, fixed pointtileSize: the tile size, fixed pointspec: the whole JSON object, for its other fields
Returns
the entity, or null if the type is not this factory's
-