| Package | Description | 
|---|---|
| peril.ai | 
| Modifier and Type | Field and Description | 
|---|---|
private java.util.concurrent.Callable<AIOperation> | 
AI.attack
The  
Callable which invokes the AI.processAttack(AIController). | 
private java.util.function.Function<AIOperation,java.lang.Boolean> | 
AI.completeAttack
The  
Function that is called when AI.attack is completed. | 
private java.util.function.Function<AIOperation,java.lang.Boolean> | 
AI.completeFortify
The  
Function that is called when AI.fortify is completed. | 
private java.util.function.Function<AIOperation,java.lang.Boolean> | 
AI.completeReinforce
The  
Function that is called when AI.reinforce is completed. | 
private java.util.concurrent.Callable<AIOperation> | 
AI.fortify
The  
Callable which invokes the AI.processFortify(AIController). | 
private java.util.concurrent.Future<AIOperation> | 
AI.future
The result of the AI operation on another thread. 
 | 
private java.util.concurrent.Callable<AIOperation> | 
AI.reinforce
The  
Callable which invokes the
 AI.processReinforce(AIController). | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract AIOperation | 
AI.processAttack(AIController api)
Perform the attack operation using the specified  
AIController. | 
protected abstract AIOperation | 
AI.processFortify(AIController api)
Perform the fortify operation using the specified  
AIController. | 
protected abstract AIOperation | 
AI.processReinforce(AIController api)
Perform the reinforce operation using the specified  
AIController. | 
| Modifier and Type | Method and Description | 
|---|---|
private boolean | 
AI.performOperation(java.util.concurrent.Callable<AIOperation> operation,
                java.util.function.Function<AIOperation,java.lang.Boolean> onComplete)
Performs the specified  
Callable operation and stored the result in
 AI.future. | 
private boolean | 
AI.performOperation(java.util.concurrent.Callable<AIOperation> operation,
                java.util.function.Function<AIOperation,java.lang.Boolean> onComplete)
Performs the specified  
Callable operation and stored the result in
 AI.future. |