Package controller

Class EntityController

All Implemented Interfaces:
Iterable<DungeonElement>

public class EntityController extends AbstractController<DungeonElement>
A class to manage DungeonElements.

On each DungeonElement the update and draw method be are called.

  • Constructor Details

    • EntityController

      public EntityController(Painter painter)
  • Method Details

    • process

      public void process(DungeonElement e)
      Updates all elements that are registered at this controller, removes deletable elements and calls the update and draw method for every registered element.
      Specified by:
      process in class AbstractController<DungeonElement>