Class GameEntityFactory
java.lang.Object
zombie.entity.GameEntityFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAddComponent(GameEntity entity, boolean replace, Component component) static voidAddComponent(GameEntity entity, Component component) static voidAddComponents(GameEntity entity, boolean replace, Component... components) static voidAddComponents(GameEntity entity, Component... components) static voidCreateEntityDebugReload(GameEntity entity, GameEntityScript script, boolean isFirstTimeCreated) static voidCreateInventoryItemEntity(InventoryItem inventoryItem, Item itemScript, boolean isFirstTimeCreated) static voidCreateIsoEntityFromCellLoading(IsoObject isoObject) static voidCreateIsoObjectEntity(IsoObject isoObject, GameEntityScript script, boolean isFirstTimeCreated) static voidRemoveComponent(GameEntity entity, Component component) static voidRemoveComponents(GameEntity entity, Component... components) static voidRemoveComponentType(GameEntity entity, ComponentType componentType) static voidRemoveComponentTypes(GameEntity entity, EnumSet<ComponentType> componentTypes) static voidTransferComponent(GameEntity source, GameEntity target, ComponentType componentType) static voidTransferComponents(GameEntity source, GameEntity target)
-
Constructor Details
-
GameEntityFactory
public GameEntityFactory()
-
-
Method Details
-
TransferComponents
-
TransferComponent
public static void TransferComponent(GameEntity source, GameEntity target, ComponentType componentType) -
CreateIsoEntityFromCellLoading
-
CreateInventoryItemEntity
public static void CreateInventoryItemEntity(InventoryItem inventoryItem, Item itemScript, boolean isFirstTimeCreated) -
CreateIsoObjectEntity
public static void CreateIsoObjectEntity(IsoObject isoObject, GameEntityScript script, boolean isFirstTimeCreated) -
CreateEntityDebugReload
public static void CreateEntityDebugReload(GameEntity entity, GameEntityScript script, boolean isFirstTimeCreated) -
RemoveComponentType
-
RemoveComponentTypes
-
RemoveComponent
-
RemoveComponents
-
AddComponent
-
AddComponents
-
AddComponent
-
AddComponents
-