|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMailBox
Interface for a mailbox lower level AIs can use to communicate.
Method Summary | |
---|---|
void |
mail(Class<? extends IUnitAI> targetAIClass,
IMessage message)
Sends a message to all AIs of a given class. |
void |
mail(IUnitAI ai,
IMessage message)
Sends a message to a specific AI. |
void |
mail(WorldObjectId targetId,
IMessage message)
Sends a message to a specific AI controlling a unit or fleet with a given WorldObjectId. |
void |
registerAI(IUnitAI ai)
Registers an AI for mail. |
void |
unregisterAI(IUnitAI ai)
Registers an AI for mail. |
Method Detail |
---|
void mail(Class<? extends IUnitAI> targetAIClass, IMessage message)
targetAIClass
- message
- void mail(WorldObjectId targetId, IMessage message)
targetId
- message
- void mail(IUnitAI ai, IMessage message)
ai
- message
- void registerAI(IUnitAI ai)
ai
- void unregisterAI(IUnitAI ai)
ai
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |