Class AIEngine

java.lang.Object
fr.r1r0r0.deltaengine.model.engines.AIEngine
All Implemented Interfaces:
Engine, java.lang.Runnable

final class AIEngine
extends java.lang.Object
implements Engine
AI Engine. Processing all AI's code when run() is called.
  • Field Summary

    Fields
    Modifier and Type Field Description
    private java.util.List<AI> ais  
  • Constructor Summary

    Constructors
    Constructor Description
    AIEngine()
    Default constructor
  • Method Summary

    Modifier and Type Method Description
    void addAI​(AI ai)
    Add a new AI to process
    void clearAIs()
    Remove all AI's of the Engine
    void init()
    Initialize the Engine.
    void removeAI​(AI ai)
    Remove an AI from the engine
    void run()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ais

      private final java.util.List<AI> ais
  • Constructor Details

    • AIEngine

      AIEngine()
      Default constructor
  • Method Details

    • init

      public void init()
      Description copied from interface: Engine
      Initialize the Engine.
      Specified by:
      init in interface Engine
    • run

      public void run()
      Specified by:
      run in interface java.lang.Runnable
    • addAI

      public void addAI​(AI ai)
      Add a new AI to process
      Parameters:
      ai - AI to add
    • removeAI

      public void removeAI​(AI ai)
      Remove an AI from the engine
      Parameters:
      ai - AI to remove
    • clearAIs

      public void clearAIs()
      Remove all AI's of the Engine