public class Communication
extends Object
Modifier and Type | Method and Description |
---|---|
void |
aiChat(int playerID,
string chatString)
Deprecated.
|
long |
aiCommsGetRecordData(int id)
Get the data of a given record.
|
long |
aiCommsGetRecordPlayerID(int id)
Get the player ID of a given record.
|
vector |
aiCommsGetRecordPosition(int id)
Get the position of a given record.
|
long |
aiCommsGetRecordPromptType(int id)
Get the prompt type of a given record.
|
long |
aiCommsGetRecordResponse(int id)
Get the response type of a given record.
|
long |
aiCommsGetRecordType(int id)
Get the type of a given record.
|
long |
aiCommsGetResponseData(int id)
Get the response data of a given record.
|
int |
aiCommsSendOrder(int targetPlayerID,
int promptType,
int data1)
Sends an order to the designated player.
|
int |
aiCommsSendOrderWithVector(int targetPlayerID,
int promptType,
int data1,
vector position)
Sends an order to the designated player.
|
int |
aiCommsSendPrompt(int targetPlayerID,
int promptType,
int textVariant,
float timeout,
int yesOrderType,
int noOrderType,
int data1)
Sends a prompt to the designated player and sets up a response.
|
int |
aiCommsSendPromptWithVector(int targetPlayerID,
int promptType,
int textVariant,
float timeout,
int yesOrderType,
int noOrderType,
int data1,
vector position)
Sends a prompt to the designated player and sets up a response.
|
int |
aiCommsSendStatement(int targetPlayerID,
int promptType,
int textVariant)
Sends a statement to the designated player.
|
int |
aiCommsSendStatementWithVector(int targetPlayerID,
int promptType,
int textVariant,
vector v)
Sends a statement to the designated player.
|
bool |
aiCommsSetEventHandler(string handlerFunctionName)
Sets the handler for the communications system (invalid name unsets the handler).
|
bool |
aiCommsSetSpecificEventHandler(long recordID,
string handlerFunctionName)
Sets the handler for a specific chat record in the comms system (invalid name unsets the handler).
|
void |
aiSendChatToAllies(string chatString)
Deprecated.
|
void |
aiSendChatToEnemies(string chatString)
Deprecated.
|
void |
aiSendChatToEveryone(string chatString)
Deprecated.
|
public final int cAICommPromptNone
public final int cAICommPromptAIBuildSettlement
public final int cAICommPromptAIResignGatherers
public final int cAICommPromptAIResignSettlements
public final int cAICommPromptAIResignActiveEnemies
public final int cAICommPromptIntro
public final int cAICommPromptGenericGodPower
public final int cAICommPromptOffensiveGodPower
public final int cAICommPromptEconomicGodPower
public final int cAICommPromptAILostSettlement
public final int cAICommPromptAILostLastSettlement
public final int cAICommPromptEnemyBuildSettlement
public final int cAICommPromptEnemyLostSettlement
public final int cAICommPromptEnemyLostLastSettlement
public final int cAICommPromptAIWinningAgeRace
public final int cAICommPromptAILosingAgeRace
public final int cAICommPromptAIWonderDestroyed
public final int cAICommPromptPlayerWonderDestroyed
public final int cAICommPromptPlayerBuildingWalls
public final int cAICommPromptAIAttack
public final int cAICommPromptAIAttackHere
public final int cAICommPromptAIRetreat
public final int cAICommPromptHelpHere
public final int cAICommPromptHelpHome
public final int cAICommPromptAITakeWater
public final int cAICommPromptTakingEnemyRelic
public final int cAICommPromptTakingAllyRelic
public final int cAICommPromptResignQuestion
public final int cAICommRecordPrompt
public final int cAICommRecordOrder
public final int cAICommRecordStatement
public final int cAICommResponseNoneRequired
public final int cAICommResponseWaiting
public final int cAICommResponseYes
public final int cAICommResponseNo
public final int cAICommResponseIncomingOrder
public long aiCommsGetRecordType(int id)
public long aiCommsGetRecordPromptType(int id)
public long aiCommsGetRecordPlayerID(int id)
public long aiCommsGetRecordResponse(int id)
public long aiCommsGetResponseData(int id)
public long aiCommsGetRecordData(int id)
public vector aiCommsGetRecordPosition(int id)
public int aiCommsSendPromptWithVector(int targetPlayerID, int promptType, int textVariant, float timeout, int yesOrderType, int noOrderType, int data1, vector position)
public int aiCommsSendPrompt(int targetPlayerID, int promptType, int textVariant, float timeout, int yesOrderType, int noOrderType, int data1)
public int aiCommsSendOrderWithVector(int targetPlayerID, int promptType, int data1, vector position)
public int aiCommsSendOrder(int targetPlayerID, int promptType, int data1)
public int aiCommsSendStatement(int targetPlayerID, int promptType, int textVariant)
public int aiCommsSendStatementWithVector(int targetPlayerID, int promptType, int textVariant, vector v)
public bool aiCommsSetEventHandler(string handlerFunctionName)
public bool aiCommsSetSpecificEventHandler(long recordID, string handlerFunctionName)
public void aiChat(int playerID, string chatString)
public void aiSendChatToEveryone(string chatString)
public void aiSendChatToAllies(string chatString)
public void aiSendChatToEnemies(string chatString)