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
-
Constructor Summary
Constructors Constructor Description AIEngine()
Default constructor -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ais
-
-
Constructor Details
-
AIEngine
AIEngine()Default constructor
-
-
Method Details
-
init
public void init()Description copied from interface:Engine
Initialize the Engine. -
run
public void run()- Specified by:
run
in interfacejava.lang.Runnable
-
addAI
Add a new AI to process- Parameters:
ai
- AI to add
-
removeAI
Remove an AI from the engine- Parameters:
ai
- AI to remove
-
clearAIs
public void clearAIs()Remove all AI's of the Engine
-