Class EntityLoader

java.lang.Object
dev.kyzel.utils.EntityLoader

public class EntityLoader extends Object
A class to load entities.
  • Constructor Details

    • EntityLoader

      public EntityLoader()
  • Method Details

    • loadEntity

      public static void loadEntity(ArrayList<Entity> entityList, Renderer render, Game game, TileManager tileManager)
      Loads entities into the game.
      Parameters:
      entityList - the list to put the loaded entities into
      render - the renderer of the game
      game - the game
      tileManager - the map of the game
    • loadHostile

      private static void loadHostile(int num, ArrayList<Entity> entityList, Renderer render, Game game, TileManager tileManager)
      Loads hostile entities into the game.
      Parameters:
      num - the number of entities
      entityList - the list to put the loaded entities into
      render - the renderer of the game
      game - the game
      tileManager - the map of the game