找回密码
 点一下
查看: 7822|回复: 29

SC2 beta的Native函数列表(4月22日根据最新的编辑器补丁更新,暴雪大幅强化了native函数,增加了1000多个)

[复制链接]
发表于 2010-2-19 15:22:06 | 显示全部楼层 |阅读模式
截止Patch 0.11.0.15073,SC2的native函数一共有1873个,AI函数未统计。
来源于SC2的游戏程序sc2.exe,并非从galaxy脚本中整理
如果有谁发现了遗漏的函数也请指出。

==================================
SC2定义native的基本结构(注意:这是C的语法):
[codes=c]
struct native_def
{
    void *native_address;  // 函数的地址
    char *native_name;      // 函数名称
    char native_sig[16];     // 16字节的函数签名,包括参数、返回值等
};  // sizeof = 24
[/codes]
函数签名格式是:第一个字节为参数个数(最多14),第二字节为返回值代号,后面的每个字节为各个参数的代号。不满16字节用0填充。

参数代号目前知道的:
'-' : "void",
'?' : "bool",
'4' : "int",
'3' : "fixed",
's' : "string",
'x' : "text",
'u' : "unitgroup",
'U' : "unit",
'T' : "trigger",
'o' : "order",
'p' : "point",
'g' : "wavetarget",
'W' : "wave",
'w' : "waveinfo",
'r' : "region",
'a' : "abilcmd",
'f' : "unitfilter",
'j' : "aifilter",
'l' : "playergroup",
'm' : "marker",
'1' : "byte",
'2' : "color",
'c' : "camera",
'b' : "bank",
'M' : "doodad",
'y' : "transmissionsource",
'd' : "soundlink",
'i' : "actor",
'v' : "unitref",
'e' : "actorscope",
't' : "timer",
'R' : "revealer",
'S' : "sound"

总共出现了这么多类型:
'1', '3', '2', '4', '?', 'M', 'S', 'R', 'U', 'T', 'W', 'a', 'c', 'b', 'e', 'd', 'g', 'f', 'i', 'j', 'm', 'l', 'o', 'p', 's', 'r', 'u', 't', 'w', 'v', 'y', 'x'

所有的native结构组成一个结构数组,在0.11.0.15073版本的主程序中位于0x014FEE68处。结构数组以一个0xFFFFFFFF结尾。位于0x00AC9A30的函数负责注册整个列表。处理列表中每一项的函数是0x00AC99C0

==================================
以下是列表。
native  void   DebugString ( string );
native  void   DebugUnit ( unit );
native  void   DebugInt ( int );
native  void   DebugFixed ( fixed );
native  void   DebugPoint ( point );
native  void   DebugDump ( int );
native  void   AISetDifficulty ( int ,  int ,  bool );
native  bool   AIGetDifficulty ( int ,  int );
native  void   AIStart ( int ,  bool ,  int );
native  void   AIDisableAllScouting ( );
native  bool   AIGivingUp ( int );
native  void   AIGoodGame ( int );
native  bool   AIIsCampaign ( int );
native  bool   AIHasHumanAlly ( int );
native  void   AISetAPM ( int ,  int );
native  unit   AIGrabUnit ( int ,  string ,  int ,  point );
native  int   AIState ( int ,  int );
native  void   AISetSpecificState ( int ,  int ,  int );
native  void   AISetAllStates ( int ,  int );
native  void   AISetFlag ( int ,  int ,  bool );
native  bool   AIGetFlag ( int ,  int );
native  void   AITechFlag ( int ,  int ,  int ,  string ,  int );
native  void   AIResetUserData ( int );
native  void   AISetUserString ( int ,  int ,  string );
native  string   AIGetUserString ( int ,  int );
native  void   AISetUserInt ( int ,  int ,  int );
native  int   AIGetUserInt ( int ,  int );
native  void   AIAddStringInt ( int ,  string ,  int );
native  fixed   AIGetTime ( );
native  int   AIPathingCostMap ( point ,  point );
native  int   AIPathingCostUnit ( unit ,  point ,  bool );
native  int   AIGetTotalStartLocs ( );
native  int   AIGetGroundStartLocs ( point );
native  int   AIGetAirStartLocs ( point );
native  int   AIGetTotalTownLocs ( );
native  int   AIGetGroundTownLocs ( point );
native  int   AIGetAirTownLocs ( point );
native  int   AIRandomVal ( int ,  int );
native  void   AINewChooseSubState ( int ,  int ,  int ,  int ,  int );
native  void   AISetSubStateChance ( int ,  int );
native  int   AIChooseSubState ( );
native  bool   AIWantsMultipleTransport ( int );
native  void   AISetWantsMultipleTransport ( int ,  bool );
native  int   AIGetNumMobileTransports ( int );
native  point   AIGetBestCreepSpot ( int ,  unit ,  fixed );
native  void   AIAddDetectionDanger ( int ,  string );
native  bool   AIDefaultSuspectDetectionDanger ( int );
native  bool   AIAnyWorkersFleeingNearby ( int ,  point ,  fixed );
native  int   AIGetNumEnemies ( int );
native  int   AIGetNumAllies ( int );
native  point   AIPlacementNearbyFindTest ( int ,  point ,  fixed ,  string );
native  void   AIAddToExtraScoutGroup ( int ,  unit );
native  bool   AIOfferNewScout ( int ,  unit );
native  void   AIAddHealer ( int ,  string ,  string ,  int );
native  bool   AIAnyAllyAttacking ( int );
native  point   AIBestAllyAttackPoint ( int ,  wave );
native  bool   AIAnyAllyNeedsDefending ( int ,  wave );
native  point   AIBestAllyDefendPoint ( int ,  wave );
native  void   AIGlobalSuicide ( int );
native  wave   AIUnitGetWave ( unit );
native  unitgroup   AIWaveGetUnits ( wave );
native  unitgroup   AIGetAllEscorts ( unit );
native  unitgroup   AIGetAllEscortsGroup ( unitgroup );
native  void   AIRemoveUnitFromAnyWaves ( unit );
native  void   AIRemoveGroupFromAnyWaves ( unitgroup );
native  void   AIRemoveUnitFromAnyWavesAndSetHome ( unit ,  point );
native  void   AIRemoveGroupFromAnyWavesAndSetHome ( unitgroup ,  point );
native  unitgroup   AIGetUnitsInWavesWithTarget ( int ,  wavetarget );
native  bool   AIIsScriptControlled ( unit );
native  void   AISetUnitScriptControlled ( unit ,  bool );
native  void   AISetGroupScriptControlled ( unitgroup ,  bool );
native  bool   AIIsSuicideUnit ( unit );
native  void   AISetUnitSuicide ( unit ,  bool );
native  void   AISetGroupSuicide ( unitgroup ,  bool );
native  bool   AIIsNotUsableInWaves ( unit );
native  void   AISetUnitNotUsableInWaves ( unit ,  bool );
native  void   AISetGroupNotUsableInWaves ( unitgroup ,  bool );
native  void   AISetWantsToUpgrade ( unit );
native  void   AIInitCampaignTowns ( int );
native  void   AIInitCampaignHarvest ( int );
native  void   AIDeclareTown ( int ,  int ,  point );
native  int   AIGetMainTown ( int );
native  void   AISetMainTown ( int ,  int );
native  void   AIUpdateMainTown ( int );
native  bool   AIIsTownFull ( int ,  int );
native  int   AIGetTownState ( int ,  int );
native  fixed   AIGetTownEstablishedTime ( int ,  int );
native  point   AIGetTownLocation ( int ,  int );
native  int   AIGetClosestTown ( int ,  point );
native  int   AIGetNextUnusedTownSlot ( int );
native  int   AIGetBuildingCountInTown ( int ,  int ,  string ,  int );
native  bool   AIIsTownHarvestRunning ( int ,  int );
native  void   AIHarvest ( int ,  int );
native  void   AIHarvestRate ( int ,  int );
native  void   AIHarvestBonus ( int ,  fixed );
native  void   AISetGasPeonCountOverride ( int ,  int ,  int );
native  int   AIGetCurPeonCount ( int ,  int );
native  int   AIGetMinPeonCount ( int ,  int );
native  int   AIGetMaxPeonCount ( int ,  int );
native  int   AIGetMineralAmountLeft ( int ,  int );
native  int   AIGetGasAmountLeft ( int ,  int );
native  int   AIGetMineralNumSpots ( int ,  int );
native  int   AIGetRawGasNumSpots ( int ,  int );
native  point   AIGetGatherLocation ( int ,  int );
native  point   AIGetGatherDefLocation ( int ,  int );
native  int   AIExpand ( int ,  point ,  string );
native  unitgroup   AIGetTownThreats ( int ,  int );
native  unit   AIGetObstruction ( int );
native  bool   AIHasNearbyOpenExpansion ( int );
native  void   AIScout ( int );
native  void   AISetNumScouts ( int ,  int );
native  void   AISetScoutTimes ( int ,  int ,  int ,  int ,  int );
native  point   AIGetNextScoutLoc ( int );
native  void   AIClearCampaignScout ( int );
native  void   AIBuild ( int ,  int ,  int ,  string ,  int ,  int );
native  void   AITrain ( int ,  int ,  int ,  string ,  int );
native  void   AIResearch ( int ,  int ,  int ,  string );
native  void   AIMakeAlways ( int ,  int ,  int ,  string ,  int );
native  void   AIMakeOnce ( int ,  int ,  int ,  string ,  int );
native  void   AIClearBuildQueue ( int );
native  void   AIClearTrainQueue ( int );
native  void   AIClearResearchQueue ( int );
native  bool   AIHasRes ( int ,  int ,  int );
native  int   AITechCount ( int ,  string ,  int );
native  void   AITechCountFixupSingle ( int ,  string ,  string );
native  void   AITechCountFixupEither ( int ,  string ,  string ,  string );
native  void   AITechCountFixupInOrder ( int ,  string ,  string ,  string );
native  int   AIKnownUnitCount ( int ,  int ,  string );
native  void   AIResetCounterUnits ( int );
native  void   AICounterUnitSetup ( int ,  string ,  fixed ,  string ,  fixed ,  string );
native  int   AICounterUnitsSameTech ( int ,  int ,  string );
native  int   AICounterUnitsAnyTech ( int ,  int ,  string );
native  point   AIGetRallyPoint ( unit );
native  void   AISetPowerBuilding ( int ,  string );
native  void   AISetCreepBuilding ( int ,  string ,  string );
native  void   AIClearStock ( int );
native  void   AIEnableStock ( int );
native  void   AISetStockEx ( int ,  int ,  int ,  string ,  int ,  int );
native  void   AISetStock ( int ,  int ,  string );
native  void   AISetStockOpt ( int ,  int ,  string );
native  void   AISetStockUnitNext ( int ,  int ,  string ,  bool );
native  bool   AISetStockTown ( int ,  string ,  string );
native  bool   AISetStockExpand ( int ,  string ,  int );
native  void   AISetStockExtra ( int ,  int ,  string ,  int );
native  void   AISetStockFarms ( int ,  string ,  bool );
native  void   AISetStockPeons ( int ,  int ,  string ,  bool ,  bool );
native  void   AINewTechStock ( int );
native  void   AITechStockAdd ( string );
native  void   AISetStockTechNext ( int );
native  void   AIDefaultEconomy ( int ,  string ,  string ,  string ,  string ,  int ,  bool );
native  void   AIDefaultExpansion ( int ,  string ,  int ,  int ,  int );
native  void   AIClearLimitTech ( int );
native  void   AILimitTech ( int ,  int ,  int ,  int ,  int ,  int ,  int );
native  void   AIImportantTech ( int ,  string );
native  void   AILimitStockLarva ( int ,  string );
native  bool   AIHasStock ( int );
native  bool   AIHasStockFromTown ( int ,  int );
native  void   AIRemoveStockFromTown ( int ,  int );
native  int   AIDefaultGetObjectType ( int ,  string );
native  string   AIDefaultGetMaker ( int ,  string );
native  string   AIDefaultGetFirstMissingReq ( int ,  string );
native  string   AIDefaultGetFirstUnfinishedReq ( int ,  string );
native  int   AIDefaultGetFullMakeTime ( int ,  string );
native  string   AIGetBaseName ( string );
native  string   AIGetBuildAtName ( string );
native  void   AIReqCountAsBuiltObject ( int ,  string );
native  void   AIReqAddSpecialMaker ( string ,  string ,  string ,  int );
native  void   AISetNukeNukeCastTime ( int ,  fixed );
native  void   AISetNukeCloakCost ( int ,  fixed );
native  void   AISetNukeCloakRegenRate ( int ,  fixed );
native  void   AISetNukeGhost ( int ,  string );
native  void   AISetNukeNukeEffect ( int ,  string );
native  void   AISetNukeCloak ( int ,  string );
native  void   AISetNukeNukeAbilLink ( int ,  string );
native  void   AISetNukeCloakAbilLink ( int ,  string );
native  void   AISetNukeDamage ( int ,  fixed ,  fixed );
native  void   AISetNukeRadiusClose ( int ,  fixed ,  fixed );
native  void   AISetNukeRadiusMedium ( int ,  fixed ,  fixed );
native  void   AISetNukeRadiusFar ( int ,  fixed ,  fixed );
native  void   AIBaseThink ( unit ,  unitgroup );
native  bool   AIEvalTacticalData ( unit ,  string );
native  int   AICast ( unit ,  order ,  marker ,  bool );
native  int   AICastFlee ( unit ,  unit ,  int ,  marker );
native  int   AICastCooldown ( unit ,  order ,  marker ,  bool ,  int ,  fixed );
native  int   AISetCooldown ( unit ,  int ,  fixed );
native  bool   AITactCooldownAllow ( unit ,  int );
native  bool   AINearbyUnits ( int ,  string ,  point ,  fixed ,  int );
native  unitgroup   AIFindUnits ( int ,  string ,  point ,  fixed ,  int );
native  bool   AISameCommand ( unit ,  unit );
native  unit   AILastAttacker ( unit );
native  int   AILastAttack ( unit );
native  bool   AIControlWantsToMove ( unit );
native  bool   AIControlForceToMove ( unit );
native  bool   AIControlWantsToUnburrow ( unit );
native  bool   AIControlWantsToBurrow ( unit );
native  bool   AIControlForceUnburrow ( unit );
native  bool   AIUnitIsInCombat ( unit );
native  bool   AIIsIgnoredByWave ( unit );
native  void   AISetIgnoredByWave ( unit ,  bool );
native  point   AIGetHomePosition ( unit );
native  point   AIGetCloakedAttacker ( int );
native  void   AIClearCloakedAttacker ( int ,  point );
native  bool   AISawCloakedUnit ( int );
native  point   AIRandomSpawnPoint ( int ,  region ,  fixed ,  fixed ,  fixed );
native  point   AIBestTargetPoint ( unitgroup ,  int ,  int ,  fixed ,  fixed ,  point ,  fixed ,  int );
native  aifilter   AIFilter ( int );
native  void   AISetFilterAlliance ( aifilter ,  int );
native  void   AISetFilterMarker ( aifilter ,  int ,  int ,  marker );
native  void   AISetFilterSelf ( aifilter ,  unit );
native  void   AISetFilterBits ( aifilter ,  unitfilter );
native  void   AISetFilterRange ( aifilter ,  unit ,  fixed );
native  void   AISetFilterLife ( aifilter ,  fixed ,  fixed );
native  void   AISetFilterLifeLost ( aifilter ,  fixed ,  fixed );
native  void   AISetFilterLifePercent ( aifilter ,  fixed ,  fixed );
native  void   AISetFilterLifeSortReference ( aifilter ,  fixed ,  fixed );
native  void   AISetFilterLifeMod ( aifilter ,  int ,  fixed );
native  void   AISetFilterLifePerMarker ( aifilter ,  fixed ,  marker );
native  void   AISetFilterShields ( aifilter ,  fixed ,  fixed );
native  void   AISetFilterEnergy ( aifilter ,  fixed ,  fixed );
native  void   AISetFilterPlane ( aifilter ,  int );
native  void   AISetFilterCanAttackEnemy ( aifilter ,  int ,  int );
native  void   AISetFilterCanAttackAlly ( aifilter ,  bool ,  bool );
native  void   AISetFilterBehaviorCount ( aifilter ,  int ,  int ,  string );
native  unitgroup   AIGetFilterGroup ( aifilter ,  unitgroup );
native  unitgroup   AIFilterGathering ( unitgroup ,  int ,  fixed );
native  unitgroup   AIFilterPathable ( unitgroup ,  point );
native  unitgroup   AIFilterCasters ( unitgroup );
native  unitgroup   AIFilterProduction ( unitgroup ,  bool );
native  unitgroup   AIGetBuildingGroup ( int ,  int );
native  unit   AIGetClosestUnit ( unit ,  unitgroup ,  bool );
native  bool   AICloakEvaluate ( unit ,  fixed ,  fixed ,  fixed );
native  void   AISetTacticalAttackTargetPoint ( unit ,  point );
native  void   AISetTacticalAttackTargetUnit ( unit ,  unit );
native  order   AIUnitGroupGetValidOrder ( unitgroup ,  order ,  unit ,  bool );
native  bool   AIIsFollowingUnit ( unit ,  string );
native  int   AIGetPlayerGroup ( unitgroup );
native  bool   AINearbyPlaneTest ( point ,  int ,  fixed ,  int ,  int );
native  fixed   AIUnitGroupStrength ( unitgroup );
native  fixed   AIAllyEnemyRatio ( int ,  point ,  unitfilter ,  fixed ,  fixed );
native  void   AISetMaxBestAttackersLimit ( int ,  int );
native  unit   AIDefaultCombatPriority ( unitgroup ,  unitgroup ,  int );
native  bool   AICombatDiffFlagCatSpecialHighPrio ( int ,  int );
native  bool   AICombatDiffFlagCatSplashHighPrio ( int ,  int );
native  bool   AICombatDiffFlagCatTimedLowPrio ( int ,  int );
native  bool   AICombatDiffFlagCatWorkersNormalPrio ( int ,  int );
native  bool   AICombatDiffFlagCatSortBuildingsPrio ( int ,  int );
native  bool   AICombatDiffFlagTieBreakHealers ( int ,  int );
native  bool   AICombatDiffFlagTieBreakBonusDamage ( int ,  int );
native  bool   AICombatDiffFlagTieBreakLowHP ( int ,  int );
native  bool   AICombatDiffFlagTieBreakInjured ( int ,  int );
native  bool   AICombatDiffFlagTieBreakDetector ( int ,  int );
native  bool   AICombatDiffFlagTieBreakRange ( int ,  int );
native  void   AITransportIgnore ( int ,  string );
native  void   AITransportSetPanic ( int ,  fixed );
native  void   AITransportSetReturn ( int ,  point );
native  waveinfo   AIWaveInfoCreate ( );
native  waveinfo   AIWaveInfo ( wave );
native  void   AIWaveInfoAdd ( waveinfo ,  string ,  int );
native  int   AIWaveInfoAttack ( waveinfo ,  int ,  point ,  wavetarget ,  int );
native  int   AIWaveInfoSuicide ( waveinfo ,  int ,  point ,  wavetarget ,  int );
native  int   AIWaveInfoScout ( waveinfo ,  int ,  point ,  int );
native  string   AIWaveToString ( wave );
native  text   AIWaveToText ( wave );
native  wave   AIWaveCreate ( waveinfo ,  int ,  point );
native  void   AIWaveAddUnit ( wave ,  unit );
native  void   AIWaveAddUnitPriority ( wave ,  unit ,  int );
native  void   AIWaveRemoveUnit ( wave ,  unit );
native  int   AIWaveUnitCount ( wave );
native  int   AIWaveDetectorCount ( wave );
native  void   AIWaveSetType ( wave ,  int ,  wavetarget );
native  int   AIWaveState ( wave );
native  point   AIWaveGoal ( wave );
native  void   AIWaveDelete ( wave );
native  wavetarget   AIWaveTargetUnit ( unit );
native  wavetarget   AIWaveTargetUnitGroup ( unitgroup );
native  wavetarget   AIWaveTargetUnitPoint ( unit );
native  wavetarget   AIWaveTargetPoint ( point );
native  wavetarget   AIWaveTargetPlayer ( playergroup );
native  wavetarget   AIWaveTargetMelee ( int );
native  wavetarget   AIWaveTargetMeleeHarass ( int );
native  wavetarget   AIWaveTargetMeleeDrop ( int ,  point ,  point );
native  wavetarget   AIWaveTargetMeleeDefend ( int );
native  wavetarget   AIWaveTargetMerge ( wave );
native  wavetarget   AIWaveTargetPatrol ( int );
native  wavetarget   AIWaveTargetEscort ( unitgroup ,  int );
native  wavetarget   AIWaveTargetEscortNL ( unitgroup ,  int );
native  wavetarget   AIWaveTargetGatherO ( int ,  int );
native  wavetarget   AIWaveTargetGatherD ( int ,  int );
native  wavetarget   AIWaveTargetRegion ( region ,  int );
native  point   AIWaveTargetGatherOPoint ( int ,  int );
native  point   AIWaveTargetGatherDPoint ( int ,  int );
native  unit   AIWaveTargetGetUnit ( wavetarget );
native  unitgroup   AIWaveTargetGetUnitGroup ( wavetarget );
native  wavetarget   AIWaveHarassRetreat ( int ,  wave ,  fixed );
native  wavetarget   AIWaveGetTarget ( wave );
native  bool   AIWaveIsInCombat ( wave );
native  int   AIWaveGetTimeInCombat ( wave );
native  int   AIWaveGetTimeSinceCombat ( wave );
native  int   AIWaveGetTimeSinceOrdered ( wave );
native  int   AIWaveGetTimeSinceRetreat ( wave );
native  bool   AIShouldHelpUserAlly ( int ,  wave );
native  point   AIGetBestUserAllyHelpLocation ( int ,  wave );
native  bool   AIDefenseThreat ( int ,  int ,  wave );
native  int   AISelfDefenseThreatEval ( int ,  int );
native  int   AIWaveEval ( wave );
native  int   AIWaveEvalRatio ( wave ,  fixed );
native  int   AIUnitAreaEvalRatio ( unit ,  fixed );
native  int   AIEvalRatio ( int );
native  void   AIEvalSetCustomIndex ( int );
native  int   AIEvalAllAllied ( int );
native  int   AIEvalLargestEnemy ( int );
native  int   AILastWaveEvalStaticRatio ( );
native  void   AIWaveTargetAddWaypoint ( wavetarget ,  point ,  bool ,  int );
native  void   AIWaveTargetClearWaypoints ( wavetarget );
native  wave   AIWaveGet ( int ,  int );
native  void   AIWaveSet ( int ,  int ,  wave );
native  int   AIWaveType ( wave );
native  void   AIWaveSetUserData ( wave ,  int ,  int );
native  int   AIWaveGetUserData ( wave ,  int );
native  void   AIWaveMerge ( int ,  int ,  int );
native  void   AIWaveMergeMelee ( int );
native  wave   WaveLastCreated ( );
native  point   AIGetBestTarget ( int ,  playergroup ,  point ,  int );
native  bool   AIFindDropAttackTarget ( int ,  point );
native  point   AILastDropLocation ( );
native  point   AILastDropGoal ( );
native  fixed   AIGetNextDropTimeCheck ( int );
native  void   AISetNextDropTimeCheck ( int ,  fixed );
native  int   AILastAttackRatio ( wave );
native  int   AILastAttackStartEval ( wave );
native  void   AIAttackWaveAddUnits ( int ,  int ,  string );
native  int   AIAttackWaveSend ( int ,  int ,  bool );
native  void   AIAttackWaveCancel ( wave );
native  void   AIAttackWaveSetGatherPoint ( int ,  point );
native  void   AIAttackWaveUseUnit ( int ,  unit );
native  void   AIAttackWaveUseGroup ( int ,  unitgroup );
native  void   AIAttackWaveAddEscortUnit ( int ,  unit ,  unit ,  fixed ,  fixed );
native  void   AIAttackWaveAddEscortType ( int ,  string ,  unit ,  fixed ,  fixed );
native  void   AIAttackWaveSetTargetUnit ( int ,  unit );
native  void   AIAttackWaveSetTargetUnitGroup ( int ,  unitgroup );
native  void   AIAttackWaveSetTargetUnitPoint ( int ,  unit );
native  void   AIAttackWaveSetTargetPoint ( int ,  point );
native  void   AIAttackWaveSetTargetPlayer ( int ,  playergroup );
native  void   AIAttackWaveSetTargetMelee ( int );
native  void   AIAttackWaveSetTargetMeleeHarass ( int );
native  void   AIAttackWaveSetTargetMeleeDrop ( int ,  point ,  point );
native  void   AIAttackWaveSetTargetMeleeDefend ( int );
native  void   AIAttackWaveSetTargetMerge ( int ,  wave );
native  void   AIAttackWaveSetTargetPatrol ( int ,  int );
native  void   AIAttackWaveSetTargetEscort ( int ,  unitgroup ,  int );
native  void   AIAttackWaveSetTargetEscortNL ( int ,  unitgroup ,  int );
native  void   AIAttackWaveSetTargetGatherO ( int ,  int );
native  void   AIAttackWaveSetTargetGatherD ( int ,  int );
native  void   AIAttackWaveSetTargetRegion ( int ,  region ,  int );
native  void   AIAttackWaveSetGatherEarlyNoReplace ( int );
native  void   AIAttackWaveSetKeepAlive ( int );
native  void   AIAttackWaveAddWaypoint ( int ,  point ,  bool );
native  void   AIAttackWaveClearWaypoints ( int );
native  void   AISetMinimumBullyCount ( int ,  string ,  int );
native  void   AISetGeneralRebuildCount ( int ,  bool ,  int );
native  void   AISetSpecificRebuildCount ( int ,  string ,  int );
native  void   AISetBullyAttackWavePercent ( int ,  int );
native  void   AINearestTownLimitWaveGather ( int ,  bool );
native  void   AINearestTownBullyRebuild ( int ,  bool );
native  void   AIToggleBulliesInRegion ( int ,  region ,  bool );
native  void   AIResetBullyRebuildCountsInRegion ( int ,  region );
native  void   AIClearAllBullies ( int );
native  void   AIAddBully ( int ,  string ,  point ,  int );
native  string   AIGetBullyType ( unit );
native  void   AchievementAward ( int ,  string );
native  void   AchievementErase ( int ,  string );
native  void   AchievementPanelSetVisible ( playergroup ,  bool );
native  void   AchievementTermQuantitySet ( int ,  string ,  int );
native  void   AchievementsDisable ( int );
native  actorscope   ActorScopeCreate ( string );
native  actorscope   ActorScopeFrom ( string );
native  actorscope   ActorScopeFromActor ( actor );
native  actorscope   ActorScopeFromUnit ( unit );
native  actorscope   ActorScopeFromPortrait ( int );
native  text   ActorScopeGetText ( actorscope );
native  void   ActorScopeKill ( actorscope );
native  void   ActorScopeOrphan ( actorscope );
native  actor   ActorScopeRefGet ( actorscope ,  string );
native  void   ActorScopeRefSet ( actorscope ,  string ,  actor );
native  void   ActorScopeSend ( actorscope ,  string );
native  actor   ActorCreate ( actorscope ,  string ,  string ,  string ,  string );
native  actor   ActorFrom ( string );
native  actor   ActorFromActor ( actor ,  string );
native  actor   ActorFromScope ( actorscope ,  string );
native  actor   ActorFromDoodad ( doodad );
native  actor   ActorFromPortrait ( int );
native  text   ActorGetText ( actor );
native  actor   ActorRefGet ( actor ,  string );
native  void   ActorRefSet ( actor ,  string ,  actor );
native  void   ActorSend ( actor ,  string );
native  void   ActorSendTo ( actor ,  string ,  string );
native  void   ActorLookAtStart ( actor ,  string ,  int ,  fixed ,  actor );
native  void   ActorLookAtStop ( actor ,  string ,  int ,  fixed );
native  void   ActorLookAtTypeStart ( actor ,  string ,  actor );
native  void   ActorLookAtTypeStop ( actor ,  string );
native  void   ActorTextureGroupApplyGlobal ( string );
native  void   ActorTextureGroupRemoveGlobal ( string );
native  void   ActorWorldParticleFXDestroy ( );
native  actor   ActorRegionCreate ( actorscope ,  string ,  region );
native  void   ActorRegionSend ( actor ,  int ,  string ,  string ,  string );
native  string   MakeMsgAnimBracketResume ( string ,  int ,  fixed ,  int );
native  string   MakeMsgAnimBracketStart ( string ,  string ,  string ,  string ,  int ,  fixed ,  int );
native  string   MakeMsgAnimBracketStop ( string ,  int ,  fixed ,  int );
native  string   MakeMsgAnimGroupApply ( string ,  string ,  string ,  int ,  fixed ,  int );
native  string   MakeMsgAnimGroupRemove ( string ,  int ,  fixed ,  int );
native  string   MakeMsgAnimPlay ( string ,  string ,  int ,  fixed ,  fixed ,  fixed ,  int );
native  string   MakeMsgRefCreate ( string );
native  string   MakeMsgRefSetFromRequest ( string ,  string ,  string ,  int ,  int );
native  string   MakeMsgRefTableDump ( int );
native  string   MakeMsgSetPhysicsState ( int ,  fixed ,  fixed );
native  string   MakeMsgTextureSelectByMatch ( string ,  int ,  string ,  int );
native  string   MakeMsgTextureSelectBySlot ( string ,  int ,  string );
native  string   MakeMsgTextureVideoPlay ( string ,  int ,  int ,  int ,  int ,  string );
native  string   MakeMsgTextureVideoStop ( string ,  int );
native  string   MakeMsgTextureVideoSetFrame ( string ,  int ,  int );
native  string   MakeMsgTextureVideoSetPaused ( string ,  int ,  bool );
native  string   MakeMsgTextureVideoSetTime ( string ,  int ,  fixed );
native  string   MakeMsgTransition ( int ,  fixed ,  fixed );
native  string   TextureGetSlotName ( string );
native  int   TextureGetSlotComponent ( string );
native  doodad   DoodadFromId ( int );
native  void   ModelAnimationLoad ( string ,  string );
native  void   ModelAnimationUnload ( string ,  string );
native  bool   BankExists ( string ,  int );
native  bank   BankLastCreated ( );
native  bank   BankLoad ( string ,  int );
native  string   BankName ( bank );
native  int   BankPlayer ( bank );
native  void   BankRemove ( bank );
native  void   BankSave ( bank );
native  void   BankDeleteCampaignBanks ( int );
native  int   BankSectionCount ( bank );
native  bool   BankSectionExists ( bank ,  string );
native  string   BankSectionName ( bank ,  int );
native  void   BankSectionRemove ( bank ,  string );
native  int   BankKeyCount ( bank ,  string );
native  bool   BankKeyExists ( bank ,  string ,  string );
native  string   BankKeyName ( bank ,  string ,  int );
native  void   BankKeyRemove ( bank ,  string ,  string );
native  bool   BankValueIsType ( bank ,  string ,  string ,  int );
native  fixed   BankValueGetAsFixed ( bank ,  string ,  string );
native  void   BankValueSetFromFixed ( bank ,  string ,  string ,  fixed );
native  bool   BankValueGetAsFlag ( bank ,  string ,  string );
native  void   BankValueSetFromFlag ( bank ,  string ,  string ,  bool );
native  int   BankValueGetAsInt ( bank ,  string ,  string );
native  void   BankValueSetFromInt ( bank ,  string ,  string ,  int );
native  point   BankValueGetAsPoint ( bank ,  string ,  string );
native  void   BankValueSetFromPoint ( bank ,  string ,  string ,  point );
native  string   BankValueGetAsString ( bank ,  string ,  string );
native  void   BankValueSetFromString ( bank ,  string ,  string ,  string );
native  text   BankValueGetAsText ( bank ,  string ,  string );
native  void   BankValueSetFromText ( bank ,  string ,  string ,  text );
native  unit   BankLastRestoredUnit ( );
native  unit   BankValueGetAsUnit ( bank ,  string ,  string ,  int ,  point ,  fixed );
native  void   BankValueSetFromUnit ( bank ,  string ,  string ,  unit );
native  void   BattleReportPanelSetSelectedBattleReport ( playergroup ,  int );
native  int   BattleReportPanelGetSelectedBattleReport ( int );
native  int   BattleReportCreate ( playergroup ,  text ,  int ,  int );
native  int   BattleReportLastCreated ( );
native  void   BattleReportDestroy ( int );
native  void   BattleReportSetState ( int ,  int );
native  void   BattleReportSetPriority ( int ,  int );
native  void   BattleReportSetButtonText ( int ,  text );
native  void   BattleReportSetButtonImage ( int ,  string );
native  void   BattleReportSetMissionText ( int ,  text );
native  void   BattleReportSetResearchTitle ( int ,  text );
native  void   BattleReportSetResearchText ( int ,  text );
native  void   BattleReportSetBonusTitle ( int ,  text );
native  void   BattleReportSetBonusText ( int ,  text );
native  void   BattleReportSetWorldText ( int ,  text );
native  void   BattleReportSetObjectiveTitle ( int ,  text );
native  void   BattleReportSetObjectiveText ( int ,  text );
native  void   BattleReportSetAchievementTitle ( int ,  text );
native  void   BattleReportSetBestTimeText ( int ,  text );
native  void   BattleReportSetMissionImage ( int ,  string );
native  void   BattleReportSetDifficultyLevelCompleted ( int ,  int ,  bool );
native  void   BattleReportSetDifficultyLevelBestTimeText ( int ,  int ,  text );
native  void   BattleReportAddAchievement ( int ,  string );
native  void   BattleReportSetSceneText ( int ,  text );
native  void   BattleReportSetSceneImage ( int ,  string );
native  void   TriggerAddEventBattleReportPanelExit ( trigger ,  int );
native  void   TriggerAddEventBattleReportPanelPlayMission ( trigger ,  int );
native  void   TriggerAddEventBattleReportPanelPlayScene ( trigger ,  int );
native  void   TriggerAddEventBattleReportPanelSelectionChanged ( trigger ,  int );
native  int   EventBattleReportPanelMissionSelected ( );
native  int   EventBattleReportPanelDifficultySelected ( );
native  int   EventBattleReportPanelSceneSelected ( );
native  int   BoardCreate ( int ,  int ,  text ,  color );
native  int   BoardLastCreated ( );
native  void   BoardDestroy ( int );
native  void   BoardShowAll ( bool ,  playergroup );
native  void   BoardTitleShow ( int ,  playergroup ,  bool );
native  void   BoardTitleSetText ( int ,  text );
native  void   BoardTitleSetColor ( int ,  int ,  color );
native  void   BoardTitleSetIcon ( int ,  string );
native  void   BoardTitleSetAlignment ( int ,  int ,  int );
native  void   BoardTitleSetClickable ( int ,  bool );
native  void   BoardSetName ( int ,  text ,  color );
native  void   BoardSetState ( int ,  playergroup ,  int ,  bool );
native  void   BoardMinimizeShow ( int ,  playergroup ,  bool );
native  void   BoardMinimizeEnable ( int ,  playergroup ,  bool );
native  void   BoardMinimizeSetState ( int ,  playergroup ,  bool );
native  void   BoardMinimizeSetColor ( int ,  color );
native  void   BoardSetColumnCount ( int ,  int );
native  void   BoardSetRowCount ( int ,  int );
native  void   BoardSetColumnWidth ( int ,  int ,  fixed );
native  void   BoardSetGroupCount ( int ,  int );
native  void   BoardRowSetGroup ( int ,  int ,  int );
native  void   BoardItemSetText ( int ,  int ,  int ,  text );
native  void   BoardItemSetTextColor ( int ,  int ,  int ,  color );
native  void   BoardItemSetBackgroundColor ( int ,  int ,  int ,  color );
native  void   BoardItemSetIcon ( int ,  int ,  int ,  string ,  bool );
native  void   BoardItemSetAlignment ( int ,  int ,  int ,  int );
native  void   BoardItemSetFontSize ( int ,  int ,  int ,  int );
native  void   BoardItemSetSortValue ( int ,  int ,  int ,  int );
native  void   BoardItemSetProgressShow ( int ,  int ,  int ,  bool );
native  void   BoardItemSetProgressRange ( int ,  int ,  int ,  fixed ,  fixed );
native  void   BoardItemSetProgressValue ( int ,  int ,  int ,  fixed );
native  void   BoardItemSetProgressColor ( int ,  int ,  int ,  color ,  int );
native  void   BoardSort ( int ,  int ,  bool ,  int );
native  void   BoardSetPlayerColumn ( int ,  int ,  bool );
native  void   BoardPlayerAdd ( int ,  int );
native  void   BoardPlayerRemove ( int ,  int );
native  camera   CameraInfoDefault ( );
native  camera   CameraInfoFromId ( int );
native  void   CameraInfoSetValue ( camera ,  int ,  fixed );
native  fixed   CameraInfoGetValue ( camera ,  int );
native  void   CameraInfoSetTarget ( camera ,  point );
native  point   CameraInfoGetTarget ( camera );
native  void   CameraApplyInfo ( int ,  camera ,  fixed ,  fixed ,  fixed ,  bool );
native  void   CameraPan ( int ,  point ,  fixed ,  fixed ,  fixed ,  bool );
native  void   CameraSetValue ( int ,  int ,  fixed ,  fixed ,  fixed ,  fixed );
native  void   CameraUseModel ( int ,  unit ,  string ,  fixed );
native  void   CameraForceMouseRelative ( int ,  bool );
native  void   CameraLockInput ( int ,  bool );
native  void   CameraSetMouseRotates ( int ,  bool );
native  void   CameraSetMouseRotationSpeed ( int ,  int ,  fixed );
native  void   CameraSetVerticalFieldOfView ( int ,  bool );
native  void   CameraUseHeightDisplacement ( int ,  bool );
native  void   CameraUseHeightSmoothing ( int ,  bool );
native  void   CameraSetChannel ( int ,  unit ,  string ,  int ,  fixed );
native  void   CameraClearChannel ( int ,  int );
native  void   CameraSetChannelOnPortrait ( int ,  camera ,  fixed ,  int ,  int );
native  void   CameraClearChannelOnPortrait ( int ,  int ,  int );
native  void   CameraShakeStart ( int ,  int ,  int ,  fixed ,  fixed ,  fixed ,  fixed );
native  void   CameraShakeStop ( int );
native  void   CameraSave ( int );
native  void   CameraRestore ( int ,  fixed ,  fixed ,  fixed );
native  point   CameraGetTarget ( int );
native  fixed   CameraGetPitch ( int );
native  fixed   CameraGetYaw ( int );
native  void   CameraSetBounds ( playergroup ,  region ,  bool );
native  void   CameraFollowUnitGroup ( int ,  unitgroup ,  bool ,  bool );
native  void   CameraLookAt ( int ,  point ,  fixed ,  fixed ,  fixed );
native  void   CameraLookAtActor ( int ,  actor );
native  void   CameraLookAtUnit ( int ,  unit );
native  void   TriggerAddEventCameraMove ( trigger ,  int ,  int );
native  int   EventCameraMoveReason ( );
native  void   CampaignInitAI ( );
native  void   CampaignProgressSetText ( playergroup ,  string ,  text );
native  void   CampaignProgressSetImageFilePath ( playergroup ,  string ,  string );
native  void   CampaignProgressSetTutorialFinished ( playergroup ,  string ,  bool );
native  void   CampaignProgressSetCampaignFinished ( playergroup ,  string ,  bool );
native  int   AbilityClass ( string );
native  int   CatalogEntryCount ( int );
native  string   CatalogEntryGet ( int ,  int );
native  bool   CatalogEntryIsValid ( int ,  string );
native  int   CatalogEntryClass ( int ,  string );
native  string   CatalogEntryParent ( int ,  string );
native  string   CatalogEntryScope ( int ,  string );
native  int   CatalogFieldCount ( string );
native  string   CatalogFieldGet ( string ,  int );
native  bool   CatalogFieldIsArray ( string ,  string );
native  bool   CatalogFieldIsScope ( string ,  string );
native  string   CatalogFieldType ( string ,  string );
native  int   CatalogFieldValueCount ( int ,  string ,  string ,  int );
native  string   CatalogFieldValueGet ( int ,  string ,  string ,  int );
native  bool   CatalogFieldValueSet ( int ,  string ,  string ,  int ,  string );
native  void   CharacterSheetPanelSetNameText ( playergroup ,  text );
native  void   CharacterSheetPanelSetDescriptionText ( playergroup ,  text );
native  void   CharacterSheetPanelSetPortraitModelLink ( playergroup ,  string );
native  void   CinematicMode ( playergroup ,  bool ,  fixed );
native  void   CinematicFade ( bool ,  fixed ,  int ,  color ,  fixed ,  bool );
native  void   CinematicOverlay ( bool ,  fixed ,  string ,  fixed ,  bool );
native  void   CinematicDataRun ( int ,  playergroup ,  bool );
native  void   CinematicDataStop ( );
native  int   BoolToInt ( bool );
native  int   Color255FromFixed ( fixed );
native  fixed   IntToFixed ( int );
native  string   IntToString ( int );
native  text   IntToText ( int );
native  int   FixedToInt ( fixed );
native  string   FixedToString ( fixed ,  int );
native  text   FixedToText ( fixed ,  int );
native  int   StringToInt ( string );
native  fixed   StringToFixed ( string );
native  color   Color ( fixed ,  fixed ,  fixed );
native  color   ColorWithAlpha ( fixed ,  fixed ,  fixed ,  fixed );
native  color   ColorFromIndex ( int ,  int );
native  fixed   ColorGetComponent ( color ,  int );
native  text   FormatNumber ( int );
native  text   FormatDuration ( int );
native  int   ConversationCreate ( bool );
native  int   ConversationLastCreated ( );
native  void   ConversationDestroy ( int );
native  void   ConversationDestroyAll ( );
native  void   ConversationShow ( int ,  playergroup ,  bool );
native  bool   ConversationVisible ( int ,  int );
native  int   ConversationReplyCreate ( int ,  text );
native  int   ConversationReplyLastCreated ( );
native  void   ConversationReplyDestroy ( int ,  int );
native  void   ConversationReplyDestroyAll ( int );
native  void   ConversationReplySetText ( int ,  int ,  text );
native  text   ConversationReplyGetText ( int ,  int );
native  void   ConversationReplySetState ( int ,  int ,  int );
native  int   ConversationReplyGetState ( int ,  int );
native  void   TriggerAddEventConversationReplySelected ( trigger ,  int ,  int ,  int );
native  int   EventConversation ( );
native  int   EventConversationReply ( );
native  int   ConversationReplyGetIndex ( int ,  int );
native  int   ConversationDataStateIndexCount ( string );
native  string   ConversationDataStateIndex ( string ,  int );
native  text   ConversationDataStateName ( string );
native  text   ConversationDataStateText ( string ,  string );
native  fixed   ConversationDataStateFixedValue ( string ,  string );
native  string   ConversationDataStateImagePath ( string );
native  int   ConversationDataStateImageEdge ( string );
native  string   ConversationDataStateAttachPoint ( string );
native  string   ConversationDataStateMoviePath ( string );
native  string   ConversationDataStateModel ( string ,  string );
native  string   ConversationDataStateUpgrade ( string ,  string );
native  abilcmd   ConversationDataStateAbilCmd ( string ,  string );
native  void   ConversationDataRegisterCamera ( string ,  string ,  camera ,  trigger ,  bool );
native  void   ConversationDataRegisterUnit ( string ,  unit );
native  void   ConversationDataRegisterPortrait ( string ,  int );
native  void   ConversationDataStateSetValue ( string ,  int );
native  int   ConversationDataStateGetValue ( string );
native  int   ConversationDataChoiceCount ( string );
native  string   ConversationDataChoiceId ( string ,  int );
native  void   ConversationDataChoiceSetState ( string ,  string ,  int );
native  int   ConversationDataChoiceGetState ( string ,  string );
native  void   ConversationDataChoiceSetPicked ( string ,  string ,  bool );
native  bool   ConversationDataChoiceGetPicked ( string ,  string );
native  void   ConversationDataChoiceSetPickedCount ( string ,  string ,  int );
native  int   ConversationDataChoiceGetPickedCount ( string ,  string );
native  int   ConversationDataLineCount ( string );
native  string   ConversationDataLineId ( string ,  int );
native  void   ConversationDataLineSetPickedCount ( string ,  string ,  int );
native  int   ConversationDataLineGetPickedCount ( string ,  string );
native  void   ConversationDataSaveStateValues ( string ,  bank ,  string );
native  void   ConversationDataLoadStateValues ( string ,  bank ,  string );
native  void   ConversationDataResetStateValues ( string );
native  void   ConversationDataSaveNodeState ( string ,  bank ,  string );
native  void   ConversationDataLoadNodeState ( string ,  bank ,  string );
native  void   ConversationDataResetNodeState ( string );
native  void   ConversationDataPreloadLines ( string );
native  bool   ConversationDataCanRun ( string ,  bool );
native  void   ConversationDataRun ( string ,  playergroup ,  int ,  bool );
native  void   ConversationDataStop ( );
native  string   ConversationDataActiveSound ( );
native  string   ConversationDataActiveCamera ( );
native  void   TriggerAddEventConversationStateChanged ( trigger ,  string );
native  string   EventConversationState ( );
native  void   DataTableClear ( bool );
native  int   DataTableValueCount ( bool );
native  string   DataTableValueName ( bool ,  int );
native  bool   DataTableValueExists ( bool ,  string );
native  int   DataTableValueType ( bool ,  string );
native  void   DataTableValueRemove ( bool ,  string );
native  void   DataTableSetAbilCmd ( bool ,  string ,  abilcmd );
native  abilcmd   DataTableGetAbilCmd ( bool ,  string );
native  void   DataTableSetActor ( bool ,  string ,  actor );
native  actor   DataTableGetActor ( bool ,  string );
native  void   DataTableSetActorScope ( bool ,  string ,  actorscope );
native  actorscope   DataTableGetActorScope ( bool ,  string );
native  void   DataTableSetAIFilter ( bool ,  string ,  aifilter );
native  aifilter   DataTableGetAIFilter ( bool ,  string );
native  void   DataTableSetBank ( bool ,  string ,  bank );
native  bank   DataTableGetBank ( bool ,  string );
native  void   DataTableSetBool ( bool ,  string ,  bool );
native  bool   DataTableGetBool ( bool ,  string );
native  void   DataTableSetByte ( bool ,  string ,  byte );
native  byte   DataTableGetByte ( bool ,  string );
native  void   DataTableSetCameraInfo ( bool ,  string ,  camera );
native  camera   DataTableGetCameraInfo ( bool ,  string );
native  void   DataTableSetCinematic ( bool ,  string ,  int );
native  int   DataTableGetCinematic ( bool ,  string );
native  void   DataTableSetColor ( bool ,  string ,  color );
native  color   DataTableGetColor ( bool ,  string );
native  void   DataTableSetControl ( bool ,  string ,  int );
native  int   DataTableGetControl ( bool ,  string );
native  void   DataTableSetConversation ( bool ,  string ,  int );
native  int   DataTableGetConversation ( bool ,  string );
native  void   DataTableSetDialog ( bool ,  string ,  int );
native  int   DataTableGetDialog ( bool ,  string );
native  void   DataTableSetDoodad ( bool ,  string ,  doodad );
native  doodad   DataTableGetDoodad ( bool ,  string );
native  void   DataTableSetFixed ( bool ,  string ,  fixed );
native  fixed   DataTableGetFixed ( bool ,  string );
native  void   DataTableSetInt ( bool ,  string ,  int );
native  int   DataTableGetInt ( bool ,  string );
native  void   DataTableSetMarker ( bool ,  string ,  marker );
native  marker   DataTableGetMarker ( bool ,  string );
native  void   DataTableSetObjective ( bool ,  string ,  int );
native  int   DataTableGetObjective ( bool ,  string );
native  void   DataTableSetOrder ( bool ,  string ,  order );
native  order   DataTableGetOrder ( bool ,  string );
native  void   DataTableSetPing ( bool ,  string ,  int );
native  int   DataTableGetPing ( bool ,  string );
native  void   DataTableSetPlanet ( bool ,  string ,  int );
native  int   DataTableGetPlanet ( bool ,  string );
native  void   DataTableSetPlayerGroup ( bool ,  string ,  playergroup );
native  playergroup   DataTableGetPlayerGroup ( bool ,  string );
native  void   DataTableSetPoint ( bool ,  string ,  point );
native  point   DataTableGetPoint ( bool ,  string );
native  void   DataTableSetPortrait ( bool ,  string ,  int );
native  int   DataTableGetPortrait ( bool ,  string );
native  void   DataTableSetRegion ( bool ,  string ,  region );
native  region   DataTableGetRegion ( bool ,  string );
native  void   DataTableSetReply ( bool ,  string ,  int );
native  int   DataTableGetReply ( bool ,  string );
native  void   DataTableSetRevealer ( bool ,  string ,  revealer );
native  revealer   DataTableGetRevealer ( bool ,  string );
native  void   DataTableSetRoom ( bool ,  string ,  int );
native  int   DataTableGetRoom ( bool ,  string );
native  void   DataTableSetSound ( bool ,  string ,  sound );
native  sound   DataTableGetSound ( bool ,  string );
native  void   DataTableSetSoundLink ( bool ,  string ,  soundlink );
native  soundlink   DataTableGetSoundLink ( bool ,  string );
native  void   DataTableSetString ( bool ,  string ,  string );
native  string   DataTableGetString ( bool ,  string );
native  void   DataTableSetText ( bool ,  string ,  text );
native  text   DataTableGetText ( bool ,  string );
native  void   DataTableSetTimer ( bool ,  string ,  timer );
native  timer   DataTableGetTimer ( bool ,  string );
native  void   DataTableSetTransmission ( bool ,  string ,  int );
native  int   DataTableGetTransmission ( bool ,  string );
native  void   DataTableSetTransmissionSource ( bool ,  string ,  transmissionsource );
native  transmissionsource   DataTableGetTransmissionSource ( bool ,  string );
native  void   DataTableSetTrigger ( bool ,  string ,  trigger );
native  trigger   DataTableGetTrigger ( bool ,  string );
native  void   DataTableSetUnit ( bool ,  string ,  unit );
native  unit   DataTableGetUnit ( bool ,  string );
native  void   DataTableSetUnitFilter ( bool ,  string ,  unitfilter );
native  unitfilter   DataTableGetUnitFilter ( bool ,  string );
native  void   DataTableSetUnitGroup ( bool ,  string ,  unitgroup );
native  unitgroup   DataTableGetUnitGroup ( bool ,  string );
native  void   DataTableSetUnitRef ( bool ,  string ,  unitref );
native  unitref   DataTableGetUnitRef ( bool ,  string );
native  void   DataTableSetWave ( bool ,  string ,  wave );
native  wave   DataTableGetWave ( bool ,  string );
native  void   DataTableSetWaveInfo ( bool ,  string ,  waveinfo );
native  waveinfo   DataTableGetWaveInfo ( bool ,  string );
native  void   DataTableSetWaveTarget ( bool ,  string ,  wavetarget );
native  wavetarget   DataTableGetWaveTarget ( bool ,  string );
native  int   DialogCreate ( int ,  int ,  int ,  int ,  int ,  bool );
native  int   DialogLastCreated ( );
native  void   DialogDestroy ( int );
native  void   DialogDestroyAll ( );
native  void   DialogSetSubtitlePositionOverride ( int );
native  void   DialogClearSubtitlePositionOverride ( );
native  void   DialogSetTitle ( int ,  text );
native  void   DialogSetSize ( int ,  int ,  int );
native  void   DialogSetPosition ( int ,  int ,  int ,  int );
native  void   DialogSetPositionRelative ( int ,  int ,  int ,  int ,  int ,  int );
native  void   DialogSetVisible ( int ,  playergroup ,  bool );
native  void   DialogSetTransparency ( int ,  fixed );
native  void   DialogSetImage ( int ,  string );
native  void   DialogSetImageVisible ( int ,  bool );
native  void   DialogSetOffscreen ( int ,  bool );
native  void   DialogSetFullscreen ( int ,  bool );
native  void   DialogSetChannel ( int ,  int );
native  bool   DialogIsModal ( int );
native  text   DialogGetTitle ( int );
native  int   DialogGetWidth ( int );
native  int   DialogGetHeight ( int );
native  int   DialogGetAnchor ( int );
native  int   DialogGetRelativeDialog ( int );
native  int   DialogGetRelativeAnchor ( int );
native  int   DialogGetOffsetX ( int );
native  int   DialogGetOffsetY ( int );
native  bool   DialogIsVisible ( int ,  int );
native  fixed   DialogGetTransparency ( int );
native  string   DialogGetImage ( int );
native  bool   DialogIsImageVisible ( int );
native  bool   DialogIsOffscreen ( int );
native  bool   DialogIsFullscreen ( int );
native  int   DialogGetChannel ( int );
native  int   DialogControlCreate ( int ,  int );
native  int   DialogControlCreateFromTemplate ( int ,  int ,  string );
native  int   DialogControlLastCreated ( );
native  void   DialogControlDestroy ( int );
native  void   DialogControlDestroyAll ( int );
native  void   DialogControlSetSize ( int ,  playergroup ,  int ,  int );
native  void   DialogControlSetPosition ( int ,  playergroup ,  int ,  int ,  int );
native  void   DialogControlSetPositionRelative ( int ,  playergroup ,  int ,  int ,  int ,  int ,  int );
native  void   DialogControlSetVisible ( int ,  playergroup ,  bool );
native  void   DialogControlSetEnabled ( int ,  playergroup ,  bool );
native  void   DialogControlSetFullDialog ( int ,  playergroup ,  bool );
native  void   DialogControlFadeTransparency ( int ,  playergroup ,  fixed ,  fixed );
native  int   DialogControlGetType ( int );
native  int   DialogControlGetWidth ( int ,  int );
native  int   DialogControlGetHeight ( int ,  int );
native  int   DialogControlGetAnchor ( int ,  int );
native  int   DialogControlGetRelativeControl ( int ,  int );
native  int   DialogControlGetRelativeAnchor ( int ,  int );
native  int   DialogControlGetOffsetX ( int ,  int );
native  int   DialogControlGetOffsetY ( int ,  int );
native  bool   DialogControlIsVisible ( int ,  int );
native  bool   DialogControlIsEnabled ( int ,  int );
native  bool   DialogControlIsFullDialog ( int ,  int );
native  void   DialogControlSetPropertyAsText ( int ,  int ,  playergroup ,  text );
native  void   DialogControlSetPropertyAsString ( int ,  int ,  playergroup ,  string );
native  void   DialogControlSetPropertyAsInt ( int ,  int ,  playergroup ,  int );
native  void   DialogControlSetPropertyAsFixed ( int ,  int ,  playergroup ,  fixed );
native  void   DialogControlSetPropertyAsBool ( int ,  int ,  playergroup ,  bool );
native  void   DialogControlSetPropertyAsColor ( int ,  int ,  playergroup ,  color );
native  void   DialogControlSetPropertyAsControl ( int ,  int ,  playergroup ,  int );
native  text   DialogControlGetPropertyAsText ( int ,  int ,  int );
native  string   DialogControlGetPropertyAsString ( int ,  int ,  int );
native  int   DialogControlGetPropertyAsInt ( int ,  int ,  int );
native  fixed   DialogControlGetPropertyAsFixed ( int ,  int ,  int );
native  bool   DialogControlGetPropertyAsBool ( int ,  int ,  int );
native  color   DialogControlGetPropertyAsColor ( int ,  int ,  int );
native  int   DialogControlGetPropertyAsControl ( int ,  int ,  int );
native  void   DialogControlAddItem ( int ,  playergroup ,  text );
native  void   DialogControlRemoveItem ( int ,  playergroup ,  int );
native  void   DialogControlRemoveAllItems ( int ,  playergroup );
native  void   DialogControlSelectItem ( int ,  playergroup ,  int );
native  int   DialogControlGetItemCount ( int ,  int );
native  int   DialogControlGetSelectedItem ( int ,  int );
native  void   DialogControlInvokeAsText ( int ,  playergroup ,  string ,  text ,  text ,  text ,  text );
native  void   DialogControlInvokeAsString ( int ,  playergroup ,  string ,  string ,  string ,  string ,  string );
native  void   TriggerAddEventDialogControl ( trigger ,  int ,  int ,  int );
native  int   EventDialogControl ( );
native  int   EventDialogControlEventType ( );
native  string   GameTimeOfDayGet ( );
native  void   GameTimeOfDaySet ( string );
native  fixed   GameTimeOfDayGetLength ( );
native  void   GameTimeOfDaySetLength ( fixed );
native  void   GameTimeOfDayPause ( bool );
native  bool   GameTimeOfDayIsPaused ( );
native  int   CreepAdjacent ( point );
native  bool   CreepIsPresent ( point );
native  void   CreepModify ( point ,  fixed ,  bool ,  bool );
native  void   CreepSetSpeed ( int ,  fixed );
native  void   PathingModify ( region ,  int ,  bool );
native  void   PathingUpdate ( );
native  void   PathingReset ( );
native  int   PowerLevel ( int ,  point );
native  bool   PowerIsProvidedBy ( int ,  point ,  unit ,  int );
native  int   CliffLevel ( point );
native  fixed   WorldHeight ( int ,  point );
native  void   GameSetLighting ( string ,  fixed );
native  void   GameSetToDLighting ( string );
native  void   SelectMainShadowLight ( string );
native  void   GameSetBackground ( int ,  string ,  fixed );
native  void   GameDestroyEffects ( point ,  fixed ,  int ,  string );
native  void   TerrainShowRegion ( region ,  bool );
native  void   WaterSetState ( string ,  fixed ,  int );
native  void   FogSetEnabled ( bool );
native  void   FogSetDensity ( fixed );
native  void   FogSetColor ( color );
native  void   FogSetFallOff ( fixed );
native  void   FogSetStartHeight ( fixed );
native  void   EnvironmentShow ( int ,  bool );
native  bool   ConsoleCommand ( string ,  bool ,  bool );
native  bool   GameIsDebugOptionSet ( string ,  int );
native  void   GameSaveCreate ( text ,  text ,  string ,  bool );
native  text   GameMapName ( );
native  text   GameMapDescription ( );
native  fixed   GameGetSpeed ( );
native  void   GameSetSpeedValue ( int );
native  int   GameGetSpeedValue ( );
native  void   GameSetSpeedValueMinimum ( int );
native  int   GameGetSpeedValueMinimum ( );
native  void   GameSetSpeedLocked ( bool );
native  bool   GameIsSpeedLocked ( );
native  string   GameAttributeGameValue ( string );
native  string   GameAttributePlayerValue ( string ,  int );
native  void   GameSetSeedLocked ( bool );
native  bool   GameIsSeedLocked ( );
native  void   GameSetAbsoluteTimeRemaining ( fixed );
native  fixed   GameGetAbsoluteTimeRemaining ( );
native  void   GameSetAbsoluteTimeRemainingPaused ( bool );
native  bool   GameGetAbsoluteTimeRemainingPaused ( );
native  void   GamePauseAllCharges ( bool );
native  void   GamePauseAllCooldowns ( bool );
native  void   GameAddChargeRegen ( string ,  fixed );
native  fixed   GameGetChargeRegen ( string );
native  void   GameAddChargeUsed ( string ,  fixed );
native  fixed   GameGetChargeUsed ( string );
native  void   GameAddCooldown ( string ,  fixed );
native  fixed   GameGetCooldown ( string );
native  bool   GameIsTestMap ( bool );
native  void   GameSetNextMap ( string );
native  void   SetNextMissionDifficulty ( playergroup ,  int );
native  bool   GameIsTransitionMap ( );
native  void   GameSetTransitionMap ( string );
native  string   GameTerrainSet ( );
native  void   GameWaitForResourcesToComplete ( );
native  void   GameOver ( int ,  int ,  bool ,  bool );
native  void   RestartGame ( playergroup );
native  void   TriggerAddEventMapInit ( trigger );
native  void   TriggerAddEventSaveGame ( trigger );
native  void   TriggerAddEventChatMessage ( trigger ,  int ,  string ,  bool );
native  string   EventChatMessage ( bool );
native  void   HelpPanelAddTip ( playergroup ,  text ,  text ,  text ,  string );
native  void   HelpPanelAddHint ( playergroup ,  text ,  text ,  string );
native  void   HelpPanelAddTutorial ( playergroup ,  text ,  text ,  string ,  string ,  bool );
native  void   HelpPanelDisplayPage ( playergroup ,  int );
native  void   HelpPanelEnableTechTreeButton ( playergroup ,  bool );
native  void   HelpPanelEnableTechGlossaryButton ( playergroup ,  bool );
native  void   HelpPanelShowTechTreeRace ( playergroup ,  string ,  bool );
native  void   TipAlertPanelClear ( playergroup );
native  void   IntLoopBegin ( int ,  int );
native  void   IntLoopStep ( );
native  bool   IntLoopDone ( );
native  int   IntLoopCurrent ( );
native  void   IntLoopEnd ( );
native  void   PlayerGroupLoopBegin ( playergroup );
native  void   PlayerGroupLoopStep ( );
native  bool   PlayerGroupLoopDone ( );
native  int   PlayerGroupLoopCurrent ( );
native  void   PlayerGroupLoopEnd ( );
native  void   UnitGroupLoopBegin ( unitgroup );
native  void   UnitGroupLoopStep ( );
native  bool   UnitGroupLoopDone ( );
native  unit   UnitGroupLoopCurrent ( );
native  void   UnitGroupLoopEnd ( );
native  fixed   SquareRoot ( fixed );
native  fixed   Pow ( fixed ,  fixed );
native  fixed   ModF ( fixed ,  fixed );
native  fixed   MinF ( fixed ,  fixed );
native  fixed   MaxF ( fixed ,  fixed );
native  fixed   AbsF ( fixed );
native  int   ModI ( int ,  int );
native  int   MinI ( int ,  int );
native  int   MaxI ( int ,  int );
native  int   AbsI ( int );
native  fixed   Sin ( fixed );
native  fixed   Cos ( fixed );
native  fixed   Tan ( fixed );
native  fixed   ASin ( fixed );
native  fixed   ACos ( fixed );
native  fixed   ATan ( fixed );
native  fixed   ATan2 ( fixed ,  fixed );
native  int   RandomInt ( int ,  int );
native  fixed   RandomFixed ( fixed ,  fixed );
native  marker   Marker ( string );
native  marker   MarkerCastingPlayer ( string ,  int );
native  marker   MarkerCastingUnit ( string ,  unit );
native  void   MarkerSetCastingPlayer ( marker ,  int );
native  int   MarkerGetCastingPlayer ( marker );
native  void   MarkerSetCastingUnit ( marker ,  unit );
native  unit   MarkerGetCastingUnit ( marker );
native  void   MarkerSetMatchFlag ( marker ,  int ,  bool );
native  bool   MarkerGetMatchFlag ( marker ,  int );
native  void   MarkerSetMismatchFlag ( marker ,  int ,  bool );
native  bool   MarkerGetMismatchFlag ( marker ,  int );
native  void   MeleeInitResourcesForPlayer ( int ,  string );
native  void   MeleeInitResources ( );
native  void   MeleeInitUnitsForPlayer ( int ,  string ,  point );
native  void   MeleeInitUnits ( );
native  void   MeleeInitAI ( );
native  void   MeleeSetOption ( int ,  int ,  bool );
native  bool   MeleeGetOption ( int ,  int );
native  void   MeleeInitOptions ( );
native  int   MercenaryCreate ( playergroup ,  int );
native  int   MercenaryLastCreated ( );
native  void   MercenaryDestroy ( int );
native  void   MercenarySetPlayerGroup ( int ,  playergroup );
native  void   MercenarySetState ( int ,  int );
native  void   MercenarySetCost ( int ,  int );
native  void   MercenarySetTitleText ( int ,  text );
native  void   MercenarySetDescriptionText ( int ,  text );
native  void   MercenarySetCostText ( int ,  text );
native  void   MercenarySetUnitText ( int ,  text );
native  void   MercenarySetAvailabilityText ( int ,  text );
native  void   MercenarySetSpecialText ( int ,  text );
native  void   MercenarySetTooltipText ( int ,  text );
native  void   MercenarySetModelLink ( int ,  string );
native  void   MercenarySetScenePath ( int ,  string );
native  void   MercenarySetImageFilePath ( int ,  string );
native  void   MercenarySetRecentlyPurchased ( int ,  bool );
native  void   MercenaryPurchase ( int );
native  bool   MercenaryIsRecentlyPurchased ( int );
native  void   MercenarySetSelected ( playergroup ,  int );
native  int   MercenaryGetSelected ( int );
native  void   TriggerAddEventMercenaryPanelExit ( trigger ,  int );
native  void   TriggerAddEventMercenaryPanelPurchase ( trigger ,  int );
native  void   TriggerAddEventMercenaryPanelSelectionChanged ( trigger ,  int ,  int );
native  void   MinimapPing ( playergroup ,  point ,  fixed ,  color );
native  void   PerfTestStart ( text );
native  void   PerfTestStop ( );
native  void   PerfTestGetFPS ( );
native  void   UnitStatsStart ( text ,  text ,  text );
native  void   UnitStatsStop ( );
native  void   EngineReset ( );
native  void   MoviePlayAfterGame ( playergroup ,  string );
native  void   MovieStartRecording ( string );
native  void   MovieStopRecording ( );
native  void   MovieAddSubTitle ( string ,  int ,  int );
native  void   MovieAddSubTitleText ( text ,  int ,  int );
native  void   MovieAddTriggerFunction ( string ,  int );
native  void   TriggerAddEventMovieStarted ( trigger ,  int );
native  void   TriggerAddEventMovieFinished ( trigger ,  int );
native  void   TriggerAddEventMovieFunction ( trigger ,  int ,  string );
native  int   ObjectiveCreate ( text ,  text ,  int ,  bool );
native  int   ObjectiveCreate3 ( text ,  text ,  int ,  bool ,  bool );
native  int   ObjectiveLastCreated ( );
native  void   ObjectiveDestroy ( int );
native  void   ObjectiveDestroyAll ( playergroup );
native  void   ObjectiveShow ( int ,  playergroup ,  bool );
native  bool   ObjectiveVisible ( int ,  int );
native  void   ObjectiveSetName ( int ,  text );
native  text   ObjectiveGetName ( int );
native  void   ObjectiveSetDescription ( int ,  text );
native  text   ObjectiveGetDescription ( int );
native  void   ObjectiveSetState ( int ,  int );
native  int   ObjectiveGetState ( int );
native  void   ObjectiveSetPlayerGroup ( int ,  playergroup );
native  playergroup   ObjectiveGetPlayerGroup ( int );
native  void   ObjectiveSetPrimary ( int ,  bool );
native  bool   ObjectiveGetPrimary ( int );
native  abilcmd   AbilityCommand ( string ,  int );
native  string   AbilityCommandGetAbility ( abilcmd );
native  int   AbilityCommandGetCommand ( abilcmd );
native  int   AbilityCommandGetAction ( abilcmd );
native  order   Order ( abilcmd );
native  order   OrderTargetingPoint ( abilcmd ,  point );
native  order   OrderTargetingRelativePoint ( abilcmd ,  point );
native  order   OrderTargetingUnit ( abilcmd ,  unit );
native  order   OrderTargetingUnitGroup ( abilcmd ,  unitgroup );
native  order   OrderTargetingItem ( abilcmd ,  unit );
native  order   OrderSetAutoCast ( abilcmd ,  bool );
native  void   OrderSetAbilityCommand ( order ,  abilcmd );
native  abilcmd   OrderGetAbilityCommand ( order );
native  void   OrderSetPlayer ( order ,  int );
native  int   OrderGetPlayer ( order );
native  int   OrderGetTargetType ( order );
native  bool   OrderSetTargetPlacement ( order ,  point ,  unit ,  string );
native  void   OrderSetTargetPoint ( order ,  point );
native  point   OrderGetTargetPoint ( order );
native  point   OrderGetTargetPosition ( order );
native  void   OrderSetTargetUnit ( order ,  unit );
native  unit   OrderGetTargetUnit ( order );
native  void   OrderSetTargetPassenger ( order ,  unit );
native  void   OrderSetTargetItem ( order ,  unit );
native  unit   OrderGetTargetItem ( order );
native  void   OrderSetFlag ( order ,  int ,  bool );
native  bool   OrderGetFlag ( order ,  int );
native  int   PingCreate ( playergroup ,  string ,  point ,  color ,  fixed );
native  int   PingLastCreated ( );
native  void   PingDestroy ( int );
native  void   PingDestroyAll ( );
native  void   PingSetPlayerGroup ( int ,  playergroup );
native  playergroup   PingGetPlayerGroup ( int );
native  void   PingSetModel ( int ,  string );
native  void   PingSetPosition ( int ,  point );
native  point   PingGetPosition ( int );
native  void   PingSetScale ( int ,  fixed );
native  fixed   PingGetScale ( int );
native  void   PingSetRotation ( int ,  fixed );
native  fixed   PingGetRotation ( int );
native  void   PingSetColor ( int ,  color );
native  color   PingGetColor ( int );
native  void   PingSetDuration ( int ,  fixed );
native  fixed   PingGetDuration ( int );
native  void   PingSetUnit ( int ,  unit );
native  unit   PingGetUnit ( int );
native  void   PingSetTooltip ( int ,  text );
native  text   PingGetTooltip ( int );
native  void   PingSetVisible ( int ,  bool );
native  bool   PingIsVisible ( int );
native  int   PlanetCreate ( playergroup ,  int );
native  int   PlanetLastCreated ( );
native  void   PlanetDestroy ( int );
native  void   PlanetDestroyAll ( playergroup );
native  void   PlanetSetSelected ( playergroup ,  int );
native  int   PlanetGetSelected ( int );
native  void   PlanetClearSelected ( playergroup );
native  void   PlanetSetPlayerGroup ( int ,  playergroup );
native  void   PlanetSetState ( int ,  int );
native  void   PlanetSetPlanetName ( int ,  text );
native  void   PlanetSetDescriptionText ( int ,  text );
native  void   PlanetSetTooltipText ( int ,  text );
native  void   PlanetSetContactTooltipText ( int ,  text );
native  void   PlanetSetTechnologyTooltipText ( int ,  text );
native  void   PlanetSetMissionTitle ( int ,  text );
native  void   PlanetSetMissionName ( int ,  text );
native  void   PlanetSetPrimaryObjectiveTitle ( int ,  text );
native  void   PlanetSetPrimaryObjectiveText ( int ,  text );
native  void   PlanetSetSecondaryObjectiveTitle ( int ,  text );
native  void   PlanetSetSecondaryObjectiveText ( int ,  text );
native  void   PlanetSetRewardTitle ( int ,  text );
native  void   PlanetSetRewardText ( int ,  text );
native  void   PlanetSetResearchTitle ( int ,  text );
native  void   PlanetSetResearchText ( int ,  text );
native  void   PlanetSetBonusTitle ( int ,  text );
native  void   PlanetSetBonusText ( int ,  text );
native  void   PlanetSetPlanetText ( int ,  text );
native  void   PlanetSetTechnologyTitle ( int ,  text );
native  void   PlanetSetTechnologyName ( int ,  text );
native  void   PlanetSetTechnologyText ( int ,  text );
native  void   PlanetSetContactTitle ( int ,  text );
native  void   PlanetSetContactName ( int ,  text );
native  void   PlanetSetContactModelLink ( int ,  string );
native  void   PlanetSetBackgroundModelLink ( int ,  string );
native  void   PlanetSetPlanetModelLink ( int ,  string );
native  void   PlanetSetTechnologyIconFilePath ( int ,  string );
native  void   PlanetSetTechnologyUnitLink ( int ,  string );
native  void   PlanetPanelSetContactButtonState ( playergroup ,  int );
native  int   PlanetPanelGetContactButtonState ( int );
native  void   PlanetPanelSetBackButtonEnabled ( playergroup ,  bool );
native  void   PlanetPanelSetBackgroundImage ( playergroup ,  string );
native  void   TriggerAddEventPlanetMissionLaunched ( trigger ,  int );
native  void   TriggerAddEventPlanetMissionSelected ( trigger ,  int ,  int );
native  void   TriggerAddEventPlanetPanelCanceled ( trigger ,  int );
native  void   TriggerAddEventPlanetPanelReplayPressed ( trigger ,  int );
native  void   TriggerAddEventPlanetPanelBirthComplete ( trigger ,  int );
native  void   TriggerAddEventPlanetPanelDeathComplete ( trigger ,  int );
native  int   EventPlanetPanelMissionSelected ( );
native  int   EventPlanetPanelDifficultySelected ( );
native  void   VictoryPanelSetMissionTitle ( text );
native  void   VictoryPanelSetMissionText ( text );
native  void   VictoryPanelSetMissionTimeTitle ( text );
native  void   VictoryPanelSetMissionTimeText ( text );
native  void   VictoryPanelSetRewardTitle ( text );
native  void   VictoryPanelSetRewardText ( text );
native  void   VictoryPanelSetRewardCredits ( int );
native  void   VictoryPanelSetAchievementsTitle ( text );
native  void   VictoryPanelSetStatisticsTitle ( text );
native  void   VictoryPanelSetCustomStatisticText ( text );
native  void   VictoryPanelSetCustomStatisticValue ( text );
native  void   VictoryPanelSetPlanetModelLink ( string );
native  void   VictoryPanelAddCustomStatisticLine ( text ,  text );
native  void   VictoryPanelClearCustomStatisticTable ( );
native  void   VictoryPanelAddTrackedStatistic ( string );
native  void   VictoryPanelAddAchievement ( string );
native  void   TriggerAddEventVictoryPanelExit ( trigger ,  int );
native  void   TriggerAddEventVictoryPanelPlayMissionAgain ( trigger ,  int );
native  int   EventVictoryPanelDifficultySelected ( );
native  void   RoomPanelSetPositionUnit ( unit );
native  void   RoomPanelAddButton ( playergroup ,  text ,  string );
native  int   RoomPanelLastAdded ( );
native  void   RoomPanelRemoveButton ( int );
native  void   RoomPanelRemoveAllButtons ( playergroup );
native  void   RoomPanelShowRoomButton ( int ,  playergroup ,  bool );
native  void   RoomPanelSetButtonPressedIcon ( int ,  string );
native  void   RoomPanelSetButtonEnabled ( int ,  bool );
native  void   TriggerAddEventRoomPanelPressedButton ( trigger ,  int ,  int );
native  void   TriggerAddEventRoomPanelCanceled ( trigger ,  int );
native  void   TriggerAddEventRoomPanelMouseRollOver ( trigger ,  int );
native  void   TriggerAddEventRoomPanelMouseRollOut ( trigger ,  int );
native  int   EventRoomPanelButtonPressed ( );
native  void   PlayerModifyPropertyInt ( int ,  int ,  int ,  int );
native  void   PlayerModifyPropertyFixed ( int ,  int ,  int ,  fixed );
native  int   PlayerGetPropertyInt ( int ,  int );
native  fixed   PlayerGetPropertyFixed ( int ,  int );
native  int   PlayerStatus ( int );
native  int   PlayerType ( int );
native  text   PlayerName ( int );
native  string   PlayerRace ( int );
native  int   PlayerDifficulty ( int );
native  void   PlayerSetDifficulty ( int ,  int );
native  point   PlayerStartLocation ( int );
native  void   PlayerSetColorIndex ( int ,  int ,  bool );
native  int   PlayerGetColorIndex ( int ,  bool );
native  text   PlayerColorName ( int );
native  void   PlayerSetAlliance ( int ,  int ,  int ,  bool );
native  bool   PlayerGetAlliance ( int ,  int ,  int );
native  void   PlayerSetState ( int ,  int ,  bool );
native  bool   PlayerGetState ( int ,  int );
native  void   PlayerBeaconClearTarget ( int ,  int );
native  bool   PlayerBeaconIsAutoCast ( int ,  int );
native  bool   PlayerBeaconIsFromUser ( int ,  int );
native  bool   PlayerBeaconIsSet ( int ,  int );
native  point   PlayerBeaconGetTargetPoint ( int ,  int );
native  unit   PlayerBeaconGetTargetUnit ( int ,  int );
native  void   PlayerBeaconSetAutoCast ( int ,  int ,  bool );
native  void   PlayerBeaconSetTargetPoint ( int ,  int ,  point ,  bool );
native  void   PlayerBeaconSetTargetUnit ( int ,  int ,  unit ,  bool );
native  void   PlayerBeaconAlert ( int ,  int ,  string ,  text );
native  void   PlayerPauseAllCharges ( int ,  bool );
native  void   PlayerPauseAllCooldowns ( int ,  bool );
native  void   PlayerAddChargeRegen ( int ,  string ,  fixed );
native  fixed   PlayerGetChargeRegen ( int ,  string );
native  void   PlayerAddChargeUsed ( int ,  string ,  fixed );
native  fixed   PlayerGetChargeUsed ( int ,  string );
native  void   PlayerAddCooldown ( int ,  string ,  fixed );
native  fixed   PlayerGetCooldown ( int ,  string );
native  void   PlayerCreateEffectPoint ( int ,  string ,  point );
native  void   PlayerCreateEffectUnit ( int ,  string ,  unit );
native  int   PlayerValidateEffectPoint ( int ,  string ,  point );
native  int   PlayerValidateEffectUnit ( int ,  string ,  unit );
native  void   PlayerScoreValueEnable ( int ,  string ,  bool );
native  fixed   PlayerScoreValueGetAsFixed ( int ,  string );
native  int   PlayerScoreValueGetAsInt ( int ,  string );
native  void   PlayerScoreValueSetFromFixed ( int ,  string ,  fixed );
native  void   PlayerScoreValueSetFromInt ( int ,  string ,  int );
native  void   TriggerAddEventPlayerAllianceChange ( trigger ,  int );
native  void   TriggerAddEventPlayerLeft ( trigger ,  int ,  int );
native  void   TriggerAddEventPlayerPropChange ( trigger ,  int ,  int );
native  void   TriggerAddEventPlayerAIWave ( trigger ,  int );
native  int   EventPlayer ( );
native  int   EventPlayerProperty ( );
native  text   DifficultyName ( int );
native  text   DifficultyNameCampaign ( int );
native  bool   DifficultyEnabled ( int );
native  int   DifficultyAPM ( int );
native  playergroup   PlayerGroupEmpty ( );
native  playergroup   PlayerGroupCopy ( playergroup );
native  playergroup   PlayerGroupAll ( );
native  playergroup   PlayerGroupActive ( );
native  playergroup   PlayerGroupSingle ( int );
native  playergroup   PlayerGroupAlliance ( int ,  int );
native  void   PlayerGroupClear ( playergroup );
native  void   PlayerGroupAdd ( playergroup ,  int );
native  void   PlayerGroupRemove ( playergroup ,  int );
native  int   PlayerGroupCount ( playergroup );
native  int   PlayerGroupPlayer ( playergroup ,  int );
native  bool   PlayerGroupHasPlayer ( playergroup ,  int );
native  point   Point ( fixed ,  fixed );
native  point   PointWithOffset ( point ,  fixed ,  fixed );
native  point   PointWithOffsetPolar ( point ,  fixed ,  fixed );
native  point   PointFromId ( int );
native  fixed   PointGetX ( point );
native  fixed   PointGetY ( point );
native  void   PointSet ( point ,  point );
native  fixed   PointGetFacing ( point );
native  void   PointSetFacing ( point ,  fixed );
native  fixed   PointGetHeight ( point );
native  void   PointSetHeight ( point ,  fixed );
native  bool   PointsInRange ( point ,  point ,  fixed );
native  fixed   AngleBetweenPoints ( point ,  point );
native  fixed   DistanceBetweenPoints ( point ,  point );
native  int   PointPathingCost ( point ,  point );
native  fixed   PointPathingCliffLevel ( point );
native  bool   PointPathingPassable ( point );
native  bool   PointPathingIsConnected ( point ,  point );
native  point   PointReflect ( point ,  point ,  fixed );
native  int   PortraitCreate ( int ,  int ,  int ,  int ,  int ,  string ,  string ,  string ,  bool ,  bool );
native  int   PortraitLastCreated ( );
native  void   PortraitDestroy ( int );
native  void   PortraitDestroyAll ( );
native  void   PortraitWaitForLoad ( int );
native  int   PortraitGetGame ( );
native  int   PortraitGetPlanetPanel ( );
native  void   PortraitSetModel ( int ,  string ,  bool );
native  void   PortraitSetAnim ( int ,  string );
native  void   PortraitSetCamera ( int ,  string );
native  void   PortraitSetSize ( int ,  int ,  int );
native  void   PortraitSetPosition ( int ,  int ,  int ,  int );
native  void   PortraitSetFullscreen ( int ,  bool );
native  void   PortraitSetOffscreen ( int ,  bool );
native  void   PortraitSetVisible ( int ,  playergroup ,  bool ,  bool );
native  void   PortraitSetBorderVisible ( int ,  bool );
native  void   PortraitSetBorderTexture ( int ,  string );
native  void   PortraitSetBackgroundVisible ( int ,  bool );
native  void   PortraitSetChannel ( int ,  int );
native  void   PortraitSetRenderType ( int ,  int );
native  void   PortraitSetChannelPortrait ( int ,  int ,  int );
native  void   PortraitUseTransition ( int ,  bool );
native  void   PortraitSetMuted ( int ,  bool );
native  void   PortraitForceTransition ( int ,  bool ,  bool );
native  void   PortraitSetPaused ( int ,  bool );
native  void   PortraitSetTintColor ( int ,  color );
native  void   PortraitSetLight ( int ,  string );
native  void   PortraitSetTransitionModel ( int ,  string );
native  bool   PortraitVisible ( int ,  int );
native  void   PreloadAsset ( string ,  bool );
native  void   PreloadImage ( string ,  bool );
native  void   PreloadModel ( string ,  bool );
native  void   PreloadMovie ( string ,  bool );
native  void   PreloadObject ( int ,  string ,  bool );
native  void   PreloadScene ( string ,  bool );
native  void   PreloadScript ( string ,  bool );
native  void   PreloadSound ( string ,  bool );
native  int   PurchaseCategoryCreate ( playergroup ,  int );
native  int   PurchaseCategoryLastCreated ( );
native  void   PurchaseCategoryDestroy ( int );
native  void   PurchaseCategoryDestroyAll ( playergroup );
native  void   PurchaseCategorySetPlayerGroup ( int ,  playergroup );
native  void   PurchaseCategorySetNameText ( int ,  text );
native  void   PurchaseCategorySetState ( int ,  int );
native  void   PurchaseCategorySetSlot ( int ,  int );
native  void   PurchaseSetSelectedPurchaseCategory ( playergroup ,  int );
native  int   PurchaseGetSelectedPurchaseCategory ( int );
native  int   PurchaseGroupCreate ( playergroup ,  int ,  int );
native  int   PurchaseGroupLastCreated ( );
native  void   PurchaseGroupDestroy ( int );
native  void   PurchaseGroupDestroyAll ( playergroup );
native  void   PurchaseGroupSetPlayerGroup ( int ,  playergroup );
native  void   PurchaseGroupSetNameText ( int ,  text );
native  void   PurchaseGroupSetTooltipText ( int ,  text );
native  void   PurchaseGroupSetIconFilePath ( int ,  string );
native  void   PurchaseGroupSetState ( int ,  int );
native  void   PurchaseGroupSetSlot ( int ,  int );
native  void   PurchaseGroupSetUnitLink ( int ,  string );
native  int   PurchaseItemCreate ( playergroup ,  int ,  int );
native  int   PurchaseItemLastCreated ( );
native  void   PurchaseItemDestroy ( int );
native  void   PurchaseItemDestroyAll ( playergroup );
native  void   PurchaseItemSetPlayerGroup ( int ,  playergroup );
native  void   PurchaseItemSetNameText ( int ,  text );
native  void   PurchaseItemSetTooltipText ( int ,  text );
native  void   PurchaseItemSetDescriptionText ( int ,  text );
native  void   PurchaseItemSetIconFilePath ( int ,  string );
native  void   PurchaseItemSetMovieFilePath ( int ,  string );
native  void   PurchaseItemSetCost ( int ,  int );
native  void   PurchaseItemSetState ( int ,  int );
native  void   PurchaseItemSetRecentlyPurchased ( int ,  bool );
native  void   PurchaseItemSetSlot ( int ,  int );
native  void   PurchaseItemPurchase ( int );
native  bool   PurchaseItemIsRecentlyPurchased ( int );
native  void   PurchaseSetSelectedPurchaseItem ( playergroup ,  int );
native  int   PurchaseGetSelectedPurchaseItem ( int );
native  void   TriggerAddEventPurchaseMade ( trigger ,  int ,  int );
native  void   TriggerAddEventPurchaseExit ( trigger ,  int );
native  void   TriggerAddEventSelectedPurchaseItemChanged ( trigger ,  int ,  int );
native  void   TriggerAddEventSelectedPurchaseCategoryChanged ( trigger ,  int ,  int );
native  int   EventPurchaseMade ( );
native  region   RegionEmpty ( );
native  region   RegionEntireMap ( );
native  region   RegionPlayableMap ( );
native  void   RegionPlayableMapSet ( region );
native  region   RegionRect ( fixed ,  fixed ,  fixed ,  fixed );
native  region   RegionCircle ( point ,  fixed );
native  region   RegionFromId ( int );
native  void   RegionAddRect ( region ,  bool ,  fixed ,  fixed ,  fixed ,  fixed );
native  void   RegionAddCircle ( region ,  bool ,  point ,  fixed );
native  void   RegionAddRegion ( region ,  region );
native  void   RegionSetOffset ( region ,  point );
native  point   RegionGetOffset ( region );
native  bool   RegionContainsPoint ( region ,  point );
native  point   RegionRandomPoint ( region );
native  point   RegionGetBoundsMin ( region );
native  point   RegionGetBoundsMax ( region );
native  point   RegionGetCenter ( region );
native  void   RegionSetCenter ( region ,  point );
native  void   RegionAttachToUnit ( region ,  unit ,  point );
native  unit   RegionGetAttachUnit ( region );
native  int   ResearchCategoryCreate ( playergroup ,  int );
native  int   ResearchCategoryLastCreated ( );
native  void   ResearchCategoryDestroy ( int );
native  void   ResearchCategoryDestroyAll ( playergroup );
native  void   ResearchCategorySetPlayerGroup ( int ,  playergroup );
native  void   ResearchCategorySetSlot ( int ,  int );
native  void   ResearchCategorySetNameText ( int ,  text );
native  void   ResearchCategorySetCurrentLevel ( int ,  int );
native  void   ResearchCategorySetLastLevel ( int ,  int );
native  int   ResearchTierCreate ( playergroup ,  int ,  int );
native  int   ResearchTierLastCreated ( );
native  void   ResearchTierDestroy ( int );
native  void   ResearchTierDestroyAll ( playergroup );
native  void   ResearchTierSetPlayerGroup ( int ,  playergroup );
native  void   ResearchTierSetSlot ( int ,  int );
native  void   ResearchTierSetRequiredLevel ( int ,  int );
native  void   ResearchTierSetMaxPurchasesAllowed ( int ,  int );
native  int   ResearchItemCreate ( playergroup ,  int ,  int );
native  int   ResearchItemLastCreated ( );
native  void   ResearchItemDestroy ( int );
native  void   ResearchItemDestroyAll ( playergroup );
native  void   ResearchItemSetPlayerGroup ( int ,  playergroup );
native  void   ResearchItemSetSlot ( int ,  int );
native  void   ResearchItemSetState ( int ,  int );
native  void   ResearchItemSetNameText ( int ,  text );
native  void   ResearchItemSetDescriptionText ( int ,  text );
native  void   ResearchItemSetTooltipText ( int ,  text );
native  void   ResearchItemSetConfirmationText ( int ,  text );
native  void   ResearchItemSetIconFilePath ( int ,  string );
native  void   ResearchItemSetMovieFilePath ( int ,  string );
native  void   ResearchItemSetRecentlyPurchased ( int ,  bool );
native  bool   ResearchItemIsRecentlyPurchased ( int );
native  void   ResearchItemPurchase ( int );
native  void   ResearchItemSetSelected ( playergroup ,  int );
native  int   ResearchItemGetSelected ( int );
native  void   TriggerAddEventResearchPanelExit ( trigger ,  int );
native  void   TriggerAddEventResearchPanelPurchase ( trigger ,  int );
native  void   TriggerAddEventResearchPanelSelectionChanged ( trigger ,  int ,  int );
native  soundlink   SoundLink ( string ,  int );
native  string   SoundLinkId ( soundlink );
native  int   SoundLinkAsset ( soundlink );
native  void   SoundPlay ( soundlink ,  playergroup ,  fixed ,  fixed );
native  void   SoundPlayAtPoint ( soundlink ,  playergroup ,  point ,  fixed ,  fixed ,  fixed );
native  void   SoundPlayOnUnit ( soundlink ,  playergroup ,  unit ,  fixed ,  fixed ,  fixed );
native  void   SoundPlayScene ( soundlink ,  playergroup ,  unitgroup ,  string );
native  void   SoundPlaySceneFile ( soundlink ,  playergroup ,  string ,  string );
native  sound   SoundLastPlayed ( );
native  void   SoundStop ( sound ,  bool );
native  void   SoundStopAllModelSounds ( );
native  void   SoundStopAllTriggerSounds ( bool );
native  void   SoundSetVolume ( sound ,  fixed );
native  void   SoundSetPosition ( sound ,  point ,  fixed );
native  void   SoundSetOffset ( sound ,  fixed ,  int );
native  void   SoundWait ( sound ,  fixed ,  int );
native  void   SoundAttachUnit ( sound ,  unit ,  fixed );
native  void   SoundLengthQuery ( soundlink );
native  void   SoundLengthQueryWait ( );
native  fixed   SoundLengthSync ( soundlink );
native  void   SoundChannelSetVolume ( playergroup ,  int ,  fixed ,  fixed );
native  void   SoundChannelMute ( playergroup ,  int ,  bool );
native  void   SoundChannelPause ( playergroup ,  int ,  bool );
native  void   SoundChannelStop ( playergroup ,  int );
native  void   SoundSetReverb ( string ,  fixed ,  bool ,  bool );
native  void   SoundSetFactors ( fixed ,  fixed ,  fixed );
native  text   SoundSubtitleText ( soundlink );
native  void   SoundtrackDefault ( playergroup ,  int ,  string ,  int ,  int );
native  void   SoundtrackPlay ( playergroup ,  int ,  string ,  int ,  int ,  bool );
native  void   SoundtrackPause ( playergroup ,  int ,  bool ,  bool );
native  void   SoundtrackSetContinuous ( playergroup ,  int ,  bool );
native  void   SoundtrackSetDelay ( playergroup ,  int ,  fixed );
native  void   SoundtrackSetShuffle ( playergroup ,  int ,  bool ,  bool );
native  void   SoundtrackStop ( playergroup ,  int ,  bool );
native  void   SoundtrackWait ( string );
native  void   StoryMode ( playergroup ,  bool );
native  void   StorySetChange ( );
native  void   CampaignMode ( playergroup ,  bool );
native  int   StringLength ( string );
native  string   StringCase ( string ,  bool );
native  text   TextCase ( text ,  bool );
native  string   StringSub ( string ,  int ,  int );
native  bool   StringEqual ( string ,  string ,  bool );
native  int   StringFind ( string ,  string ,  bool );
native  bool   StringContains ( string ,  string ,  int ,  bool );
native  string   StringWord ( string ,  int );
native  string   StringReplace ( string ,  string ,  int ,  int );
native  string   StringReplaceWord ( string ,  string ,  string ,  int ,  bool );
native  text   TextReplaceWord ( text ,  text ,  text ,  int ,  bool );
native  text   StringExternal ( string );
native  text   StringToText ( string );
native  text   TextWithColor ( text ,  color );
native  text   TextTimeFormat ( text ,  int );
native  void   TechTreeAbilityAllow ( int ,  abilcmd ,  bool );
native  int   TechTreeAbilityCount ( int ,  string ,  int );
native  bool   TechTreeAbilityIsAllowed ( int ,  abilcmd );
native  void   TechTreeBehaviorAllow ( int ,  string ,  bool );
native  int   TechTreeBehaviorCount ( int ,  string ,  int );
native  bool   TechTreeBehaviorIsAllowed ( int ,  string );
native  abilcmd   TechTreeBehaviorProducedAbilCmd ( string ,  int );
native  int   TechTreeBehaviorProducedAbilCmdCount ( string );
native  void   TechTreeRequirementsEnable ( int ,  bool );
native  bool   TechTreeRequirementsEnabled ( int );
native  void   TechTreeRestrictionsEnable ( int ,  bool );
native  bool   TechTreeRestrictionsEnabled ( int );
native  void   TechTreeUnitAllow ( int ,  string ,  bool );
native  int   TechTreeUnitCount ( int ,  string ,  int );
native  int   TechTreeUnitAliasCount ( int ,  string ,  int );
native  int   TechTreeUnitCountEx ( int ,  string ,  string ,  int );
native  bool   TechTreeUnitIsAllowed ( int ,  string );
native  void   TechTreeUnitHelp ( int ,  string ,  bool );
native  void   TechTreeUnitHelpDefault ( int ,  bool );
native  abilcmd   TechTreeUnitProducedAbilCmd ( string ,  int );
native  int   TechTreeUnitProducedAbilCmdCount ( string );
native  string   TechTreeUnitProducesUnit ( string ,  int );
native  int   TechTreeUnitProducesUnitCount ( string );
native  string   TechTreeUnitProducesUpgrade ( string ,  int );
native  int   TechTreeUnitProducesUpgradeCount ( string );
native  void   TechTreeUpgradeAddLevel ( int ,  string ,  int );
native  void   TechTreeUpgradeAllow ( int ,  string ,  bool );
native  int   TechTreeUpgradeCount ( int ,  string ,  int );
native  bool   TechTreeUpgradeIsAllowed ( int ,  string );
native  abilcmd   TechTreeUpgradeProducedAbilCmd ( string ,  int );
native  int   TechTreeUpgradeProducedAbilCmdCount ( string );
native  int   TextTagCreate ( text ,  int ,  point ,  fixed ,  bool ,  bool ,  playergroup );
native  int   TextTagLastCreated ( );
native  void   TextTagDestroy ( int );
native  void   TextTagSetText ( int ,  text );
native  void   TextTagSetTextShadow ( int ,  bool );
native  void   TextTagSetFontSize ( int ,  int );
native  void   TextTagSetPosition ( int ,  point ,  fixed );
native  void   TextTagAttachToUnit ( int ,  unit ,  fixed );
native  void   TextTagAttachToUnitPoint ( int ,  unit ,  string ,  int ,  int );
native  void   TextTagSetVelocity ( int ,  fixed ,  fixed );
native  void   TextTagSetAlignment ( int ,  int ,  int );
native  void   TextTagSetTextAlignment ( int ,  int ,  int );
native  void   TextTagSetMaxSize ( int ,  fixed ,  fixed );
native  void   TextTagShowBackground ( int ,  bool );
native  void   TextTagSetBackgroundImage ( int ,  string ,  bool );
native  void   TextTagSetBackgroundBorderSize ( int ,  fixed ,  fixed );
native  void   TextTagSetBackgroundOffset ( int ,  fixed ,  fixed );
native  void   TextTagSetEdgeImage ( int ,  int ,  string ,  int ,  int );
native  void   TextTagShow ( int ,  playergroup ,  bool );
native  bool   TextTagVisible ( int ,  int );
native  void   TextTagPause ( int ,  bool );
native  void   TextTagFogofWar ( int ,  bool );
native  void   TextTagSetColor ( int ,  int ,  color );
native  void   TextTagSetFadedTransparency ( int ,  int ,  fixed );
native  void   TextTagSetTime ( int ,  int ,  fixed );
native  void   Wait ( fixed ,  int );
native  void   AITimePause ( bool );
native  bool   AITimeIsPaused ( );
native  timer   TimerCreate ( );
native  void   TimerStart ( timer ,  fixed ,  bool ,  int );
native  void   TimerRestart ( timer );
native  timer   TimerLastStarted ( );
native  void   TimerPause ( timer ,  bool );
native  bool   TimerIsPaused ( timer );
native  fixed   TimerGetElapsed ( timer );
native  fixed   TimerGetRemaining ( timer );
native  fixed   TimerGetDuration ( timer );
native  void   TriggerAddEventTimer ( trigger ,  timer );
native  void   TriggerAddEventTimeElapsed ( trigger ,  fixed ,  int );
native  void   TriggerAddEventTimePeriodic ( trigger ,  fixed ,  int );
native  timer   EventTimer ( );
native  int   TimerWindowCreate ( timer ,  text ,  bool ,  bool );
native  int   TimerWindowLastCreated ( );
native  void   TimerWindowDestroy ( int );
native  void   TimerWindowShow ( int ,  playergroup ,  bool );
native  bool   TimerWindowVisible ( int ,  int );
native  void   TimerWindowSetTimer ( int ,  timer );
native  void   TimerWindowSetTitle ( int ,  text );
native  void   TimerWindowSetStyle ( int ,  int ,  bool );
native  void   TimerWindowSetGapWidth ( int ,  int );
native  void   TimerWindowSetFormat ( int ,  text );
native  void   TimerWindowSetColor ( int ,  int ,  color ,  fixed );
native  transmissionsource   TransmissionSource ( );
native  transmissionsource   TransmissionSourceFromUnit ( unit ,  bool ,  bool ,  string );
native  transmissionsource   TransmissionSourceFromUnitType ( string ,  bool );
native  transmissionsource   TransmissionSourceFromModel ( string );
native  transmissionsource   TransmissionSourceFromMovie ( string ,  bool );
native  int   TransmissionSend ( playergroup ,  transmissionsource ,  int ,  string ,  soundlink ,  text ,  text ,  fixed ,  int ,  bool );
native  int   TransmissionLastSent ( );
native  void   TransmissionClear ( int );
native  void   TransmissionClearAll ( );
native  void   TransmissionWait ( int ,  fixed );
native  trigger   TriggerCreate ( string );
native  void   TriggerDestroy ( trigger );
native  void   TriggerEnable ( trigger ,  bool );
native  bool   TriggerIsEnabled ( trigger );
native  void   TriggerResetCounts ( trigger );
native  int   TriggerGetEvalCount ( trigger );
native  int   TriggerGetExecCount ( trigger );
native  bool   TriggerEvaluate ( trigger );
native  void   TriggerExecute ( trigger ,  bool ,  bool );
native  trigger   TriggerGetCurrent ( );
native  void   TriggerStop ( trigger );
native  void   TriggerWaitForTrigger ( trigger ,  bool );
native  void   TriggerQueueEnter ( );
native  void   TriggerQueueExit ( );
native  bool   TriggerQueueIsEmpty ( );
native  void   TriggerQueuePause ( bool );
native  void   TriggerQueueClear ( int );
native  void   TriggerSkippableBegin ( playergroup ,  int ,  trigger ,  bool ,  bool );
native  void   TriggerSkippableEnd ( );
native  void   TriggerDebugWindowOpen ( bool );
native  void   TriggerDebugOutput ( int ,  text ,  bool );
native  void   TriggerDebugSetTypeName ( int ,  text );
native  void   TriggerDebugSetTypeColor ( int ,  color );
native  void   TriggerDebugSetTypeFile ( int ,  string );
native  unitgroup   UnitCreate ( int ,  string ,  int ,  int ,  point ,  fixed );
native  unit   UnitLastCreated ( );
native  unitgroup   UnitLastCreatedGroup ( );
native  unit   UnitFromId ( int );
native  void   UnitLoadModel ( unit );
native  void   UnitUnloadModel ( unit );
native  void   UnitRemove ( unit );
native  void   UnitKill ( unit );
native  void   UnitRevive ( unit );
native  bool   UnitIsAlive ( unit );
native  bool   UnitIsValid ( unit );
native  void   UnitWaitUntilIdle ( unit ,  bool );
native  string   UnitGetType ( unit );
native  int   UnitGetOwner ( unit );
native  void   UnitSetOwner ( unit ,  int ,  bool );
native  void   UnitSetTeamColorIndex ( unit ,  int );
native  void   UnitResetTeamColorIndex ( unit );
native  point   UnitGetPosition ( unit );
native  void   UnitSetPosition ( unit ,  point ,  bool );
native  fixed   UnitGetHeight ( unit );
native  void   UnitSetHeight ( unit ,  fixed ,  fixed );
native  fixed   UnitGetFacing ( unit );
native  void   UnitSetFacing ( unit ,  fixed ,  fixed );
native  point   UnitGetAttachmentPoint ( unit ,  string );
native  void   UnitResetSpeed ( unit );
native  void   UnitSetScale ( unit ,  fixed ,  fixed ,  fixed );
native  void   UnitPauseAll ( bool );
native  void   UnitSetCursor ( unit ,  string );
native  void   UnitSetInfoText ( unit ,  text ,  text ,  text );
native  void   UnitClearInfoText ( unit );
native  void   UnitForceStatusBar ( unit ,  bool );
native  void   UnitSetState ( unit ,  int ,  bool );
native  bool   UnitTestState ( unit ,  int );
native  void   UnitSetPropertyInt ( unit ,  int ,  int );
native  void   UnitSetPropertyFixed ( unit ,  int ,  fixed );
native  int   UnitGetPropertyInt ( unit ,  int ,  bool );
native  fixed   UnitGetPropertyFixed ( unit ,  int ,  bool );
native  void   UnitSetCustomValue ( unit ,  int ,  fixed );
native  fixed   UnitGetCustomValue ( unit ,  int );
native  void   UnitAddChargeRegen ( unit ,  string ,  fixed );
native  fixed   UnitGetChargeRegen ( unit ,  string );
native  void   UnitAddChargeUsed ( unit ,  string ,  fixed );
native  fixed   UnitGetChargeUsed ( unit ,  string );
native  void   UnitAddCooldown ( unit ,  string ,  fixed );
native  fixed   UnitGetCooldown ( unit ,  string );
native  void   UnitCreateEffectPoint ( unit ,  string ,  point );
native  void   UnitCreateEffectUnit ( unit ,  string ,  unit );
native  int   UnitValidateEffectPoint ( unit ,  string ,  point );
native  int   UnitValidateEffectUnit ( unit ,  string ,  unit );
native  void   UnitSetAIOption ( unit ,  int ,  bool );
native  bool   UnitGetAIOption ( unit ,  int );
native  void   UnitAbilitySpend ( unit ,  abilcmd ,  int );
native  void   UnitAbilityReset ( unit ,  abilcmd ,  int );
native  fixed   UnitAbilityChargeInfo ( unit ,  abilcmd ,  int );
native  int   UnitAbilityCount ( unit );
native  bool   UnitAbilityExists ( unit ,  string );
native  void   UnitAbilityEnable ( unit ,  string ,  bool );
native  void   UnitAbilityShow ( unit ,  string ,  bool );
native  string   UnitAbilityGet ( unit ,  int );
native  bool   UnitAbilityCheck ( unit ,  string ,  bool );
native  bool   UnitCheckAbilCmdState ( unit ,  abilcmd ,  int );
native  void   UnitAbilityChangeLevel ( unit ,  string ,  int );
native  int   UnitAbilityGetLevel ( unit ,  string );
native  int   UnitAbilityMaxLevel ( unit ,  string );
native  void   UnitAbilityAddChargeRegen ( unit ,  string ,  string ,  fixed );
native  fixed   UnitAbilityGetChargeRegen ( unit ,  string ,  string );
native  void   UnitAbilityAddChargeUsed ( unit ,  string ,  string ,  fixed );
native  fixed   UnitAbilityGetChargeUsed ( unit ,  string ,  string );
native  void   UnitAbilityAddCooldown ( unit ,  string ,  string ,  fixed );
native  fixed   UnitAbilityGetCooldown ( unit ,  string ,  string );
native  void   UnitCargoCreate ( unit ,  string ,  int );
native  unit   UnitCargoLastCreated ( );
native  unitgroup   UnitCargoLastCreatedGroup ( );
native  unit   UnitCargo ( unit ,  int );
native  unitgroup   UnitCargoGroup ( unit );
native  int   UnitCargoValue ( unit ,  int );
native  unit   UnitTransport ( unit );
native  unit   UnitAgent ( unit ,  int );
native  void   UnitMagazineArm ( unit ,  abilcmd ,  int );
native  int   UnitMagazineCount ( unit ,  string );
native  int   UnitQueueItemCount ( unit ,  int );
native  string   UnitQueueItemGet ( unit ,  int ,  int );
native  fixed   UnitQueueItemTime ( unit ,  int ,  int );
native  bool   UnitQueueItemTypeCheck ( unit ,  int ,  int );
native  int   UnitQueueGetProperty ( unit ,  int );
native  bool   UnitMoverExists ( unit ,  string );
native  bool   UnitTestPlane ( unit ,  int );
native  fixed   UnitGetProgressComplete ( unit ,  int );
native  void   UnitSetProgressComplete ( unit ,  int ,  int );
native  void   UnitSetProgressStage ( unit ,  int ,  int );
native  bool   UnitCheckProgressState ( unit ,  int ,  int );
native  void   UnitBehaviorAdd ( unit ,  string ,  unit ,  int );
native  void   UnitBehaviorAddPlayer ( unit ,  string ,  int ,  int );
native  int   UnitBehaviorCountAll ( unit );
native  int   UnitBehaviorCount ( unit ,  string );
native  fixed   UnitBehaviorDuration ( unit ,  string );
native  void   UnitBehaviorSetDuration ( unit ,  string ,  fixed );
native  bool   UnitBehaviorEnabled ( unit ,  string );
native  string   UnitBehaviorGet ( unit ,  int );
native  bool   UnitHasBehavior ( unit ,  string );
native  void   UnitBehaviorRemove ( unit ,  string ,  int );
native  void   UnitBehaviorRemovePlayer ( unit ,  string ,  int ,  int );
native  void   UnitBehaviorTransfer ( unit ,  unit ,  string ,  int );
native  bool   UnitBehaviorHasFlag ( string ,  int );
native  void   UnitBehaviorRemoveCategory ( unit ,  int );
native  void   UnitBehaviorAddChargeRegen ( unit ,  string ,  string ,  fixed );
native  fixed   UnitBehaviorGetChargeRegen ( unit ,  string ,  string );
native  void   UnitBehaviorAddChargeUsed ( unit ,  string ,  string ,  fixed );
native  fixed   UnitBehaviorGetChargeUsed ( unit ,  string ,  string );
native  void   UnitBehaviorAddCooldown ( unit ,  string ,  string ,  fixed );
native  fixed   UnitBehaviorGetCooldown ( unit ,  string ,  string );
native  void   UnitXPGainEnable ( unit ,  string ,  bool );
native  marker   UnitMarker ( unit ,  int );
native  void   UnitMarkerAdd ( unit ,  marker );
native  int   UnitMarkerCount ( unit ,  marker );
native  void   UnitMarkerRemove ( unit ,  marker );
native  order   UnitOrder ( unit ,  int );
native  int   UnitOrderCount ( unit );
native  bool   UnitOrderHasAbil ( unit ,  string );
native  bool   UnitOrderIsValid ( unit ,  order );
native  bool   UnitIsHarvesting ( unit ,  int );
native  bool   UnitIssueOrder ( unit ,  order ,  int );
native  int   UnitRallyPoint ( unit ,  unit );
native  int   UnitRallyPointCount ( unit );
native  int   UnitRallyPointTargetCount ( unit ,  int );
native  point   UnitRallyPointTargetPoint ( unit ,  int ,  int );
native  unit   UnitRallyPointTargetUnit ( unit ,  int ,  int );
native  int   UnitTechTreeBehaviorCount ( unit ,  string ,  int );
native  int   UnitTechTreeUnitCount ( unit ,  string ,  int );
native  int   UnitTechTreeUpgradeCount ( unit ,  string ,  int );
native  int   UnitInventoryCount ( unit ,  int );
native  unit   UnitInventoryItem ( unit ,  int );
native  unitgroup   UnitInventoryGroup ( unit );
native  unit   UnitInventoryCreate ( unit ,  string );
native  unit   UnitInventoryLastCreated ( );
native  void   UnitWeaponAdd ( unit ,  string ,  string );
native  int   UnitWeaponCount ( unit );
native  bool   UnitWeaponCheck ( unit ,  int ,  int );
native  string   UnitWeaponGet ( unit ,  int );
native  bool   UnitWeaponIsEnabled ( unit ,  int );
native  fixed   UnitWeaponPeriod ( unit ,  int );
native  void   UnitWeaponRemove ( unit ,  string );
native  bool   UnitWeaponsPlaneTest ( unit ,  int );
native  fixed   UnitXPTotal ( unit );
native  int   UnitLevel ( unit );
native  string   UnitTypeFromString ( string );
native  text   UnitTypeGetName ( string );
native  fixed   UnitTypeGetProperty ( string ,  int );
native  int   UnitTypeGetCost ( string ,  int );
native  bool   UnitTypeTestFlag ( string ,  int );
native  bool   UnitTypeTestAttribute ( string ,  int );
native  bool   UnitTypeIsAffectedByUpgrade ( string ,  string );
native  void   UnitTypeAnimationLoad ( string ,  string );
native  void   UnitTypeAnimationUnload ( string ,  string );
native  void   TriggerAddEventUnitCreated ( trigger ,  unitref ,  string ,  string );
native  void   TriggerAddEventUnitRemoved ( trigger ,  unitref );
native  void   TriggerAddEventUnitDied ( trigger ,  unitref );
native  void   TriggerAddEventUnitGainExperience ( trigger ,  unitref );
native  void   TriggerAddEventUnitGainLevel ( trigger ,  unitref );
native  void   TriggerAddEventUnitAcquiredTarget ( trigger ,  unitref );
native  void   TriggerAddEventUnitStartedAttack ( trigger ,  unitref );
native  void   TriggerAddEventUnitAttacked ( trigger ,  unitref );
native  void   TriggerAddEventUnitAttributeChange ( trigger ,  unitref );
native  void   TriggerAddEventUnitDamaged ( trigger ,  unitref ,  int ,  int ,  string );
native  void   TriggerAddEventUnitBecomesIdle ( trigger ,  unitref ,  bool );
native  unit   EventUnit ( );
native  unit   EventUnitTarget ( );
native  unit   EventUnitCreatedUnit ( );
native  string   EventUnitCreatedAbil ( );
native  string   EventUnitCreatedBehavior ( );
native  fixed   EventUnitDamageAmount ( );
native  unit   EventUnitDamageSourceUnit ( );
native  int   EventUnitDamageSourcePlayer ( );
native  point   EventUnitDamageSourcePoint ( );
native  bool   EventUnitDamageDeathCheck ( int );
native  string   EventUnitDamageEffect ( );
native  string   EventUnitBehavior ( );
native  fixed   EventUnitXPDelta ( );
native  int   EventUnitAttributePoints ( );
native  void   TriggerAddEventUnitProperty ( trigger ,  unitref ,  int );
native  void   TriggerAddEventUnitRegion ( trigger ,  unitref ,  region ,  bool );
native  void   TriggerAddEventUnitRange ( trigger ,  unitref ,  unit ,  fixed ,  bool );
native  void   TriggerAddEventUnitRangePoint ( trigger ,  unitref ,  point ,  fixed ,  bool );
native  void   TriggerAddEventUnitCargo ( trigger ,  unitref ,  bool );
native  region   EventUnitRegion ( );
native  unit   EventUnitCargo ( );
native  void   TriggerAddEventUnitSelected ( trigger ,  unitref ,  int ,  bool );
native  void   TriggerAddEventUnitClick ( trigger ,  unitref ,  int );
native  void   TriggerAddEventUnitHighlight ( trigger ,  unitref ,  int ,  bool );
native  void   TriggerAddEventUnitOrder ( trigger ,  unitref ,  abilcmd );
native  order   EventUnitOrder ( );
native  void   TriggerAddEventUnitAbility ( trigger ,  unitref ,  abilcmd ,  int ,  bool );
native  abilcmd   EventUnitAbility ( );
native  int   EventUnitAbilityStage ( );
native  point   EventUnitTargetPoint ( );
native  unit   EventUnitTargetUnit ( );
native  void   TriggerAddEventUnitConstructProgress ( trigger ,  unitref ,  int );
native  void   TriggerAddEventUnitTrainProgress ( trigger ,  unitref ,  int );
native  void   TriggerAddEventUnitResearchProgress ( trigger ,  unitref ,  int );
native  void   TriggerAddEventUnitArmMagazineProgress ( trigger ,  unitref ,  int );
native  void   TriggerAddEventUnitSpecializeProgress ( trigger ,  unitref ,  int );
native  string   EventUnitProgressObjectType ( );
native  unit   EventUnitProgressUnit ( );
native  void   TriggerAddEventUnitPowerup ( trigger ,  unitref );
native  unit   EventUnitPowerupUnit ( );
native  void   TriggerAddEventUnitRevive ( trigger ,  unitref );
native  unitfilter   UnitFilter ( int ,  int ,  int ,  int );
native  unitfilter   UnitFilterStr ( string );
native  void   UnitFilterSetState ( unitfilter ,  int ,  int );
native  int   UnitFilterGetState ( unitfilter ,  int );
native  bool   UnitFilterMatch ( unit ,  int ,  unitfilter );
native  unitgroup   UnitGroupEmpty ( );
native  unitgroup   UnitGroupCopy ( unitgroup );
native  unitgroup   UnitGroupFromId ( int );
native  unitgroup   UnitGroupAlliance ( int ,  int ,  region ,  unitfilter ,  int );
native  unitgroup   UnitGroup ( string ,  int ,  region ,  unitfilter ,  int );
native  unitgroup   UnitGroupFilter ( string ,  int ,  unitgroup ,  unitfilter ,  int );
native  unitgroup   UnitGroupFilterAlliance ( unitgroup ,  int ,  int ,  int );
native  unitgroup   UnitGroupFilterPlayer ( unitgroup ,  int ,  int );
native  unitgroup   UnitGroupFilterPlane ( unitgroup ,  int ,  int );
native  unitgroup   UnitGroupFilterRegion ( unitgroup ,  region ,  int );
native  unitgroup   UnitGroupFilterThreat ( unitgroup ,  unit ,  string ,  int );
native  unitgroup   UnitGroupIdle ( int ,  bool );
native  void   UnitGroupClear ( unitgroup );
native  void   UnitGroupAdd ( unitgroup ,  unit );
native  void   UnitGroupRemove ( unitgroup ,  unit );
native  bool   UnitGroupIssueOrder ( unitgroup ,  order ,  int );
native  void   UnitGroupWaitUntilIdle ( unitgroup ,  int ,  bool );
native  int   UnitGroupCount ( unitgroup ,  int );
native  unit   UnitGroupUnit ( unitgroup ,  int );
native  unit   UnitGroupRandomUnit ( unitgroup ,  int );
native  bool   UnitGroupHasUnit ( unitgroup ,  unit );
native  bool   UnitGroupTestPlane ( unitgroup ,  int );
native  unit   UnitGroupNearestUnit ( unitgroup ,  point );
native  unitref   UnitRefFromUnit ( unit );
native  unitref   UnitRefFromVariable ( string );
native  unit   UnitRefToUnit ( unitref );
native  void   UnitSelect ( unit ,  int ,  bool );
native  void   UnitGroupSelect ( unitgroup ,  int ,  bool );
native  void   UnitClearSelection ( int );
native  bool   UnitIsSelected ( unit ,  int );
native  unitgroup   UnitGroupSelected ( int );
native  void   UnitFlashSelection ( unit ,  fixed );
native  void   UnitControlGroupAddUnit ( int ,  int ,  unit );
native  void   UnitControlGroupAddUnits ( int ,  int ,  unitgroup );
native  void   UnitControlGroupRemoveUnit ( int ,  int ,  unit );
native  void   UnitControlGroupRemoveUnits ( int ,  int ,  unitgroup );
native  void   UnitControlGroupClear ( int ,  int );
native  void   UISetMode ( playergroup ,  int ,  fixed );
native  void   UISetWorldVisible ( playergroup ,  bool );
native  void   UISetCursorVisible ( playergroup ,  bool );
native  void   UISetCursorAutoHide ( playergroup ,  bool ,  fixed );
native  void   UIDisplayMessage ( playergroup ,  int ,  text );
native  void   UIClearMessages ( playergroup ,  int );
native  void   UIShowCinematicText ( playergroup ,  text ,  fixed ,  fixed ,  soundlink );
native  void   UIHideCinematicText ( playergroup );
native  void   UIShowTextCrawl ( playergroup ,  text ,  text ,  fixed ,  soundlink ,  soundlink );
native  void   UIHideTextCrawl ( playergroup );
native  void   UIUnitColorStyleOverride ( playergroup ,  int );
native  void   UIUnitColorStyleClearOverride ( playergroup );
native  void   UISetNextLoadingScreen ( string ,  text ,  text ,  text ,  text ,  bool );
native  void   UISetNextLoadingScreenImageScale ( int );
native  void   UISetNextLoadingScreenTextPosition ( int ,  int ,  int ,  int ,  int );
native  void   UISetRestartLoadingScreen ( text );
native  void   UIAlert ( string ,  int ,  text ,  string );
native  void   UIAlertPoint ( string ,  int ,  text ,  string ,  point );
native  void   UIAlertUnit ( string ,  int ,  text ,  string ,  unit );
native  void   UIAlertClear ( int );
native  void   UISetFrameVisible ( playergroup ,  int ,  bool );
native  bool   UIFrameVisible ( int ,  int );
native  void   UISetGameMenuItemVisible ( playergroup ,  int ,  bool );
native  bool   UIGameMenuItemVisible ( int ,  int );
native  void   UISetGameMenuItemText ( playergroup ,  int ,  text );
native  void   UIClearCustomMenuItemList ( playergroup );
native  void   UISetCustomMenuItemVisible ( playergroup ,  int ,  bool );
native  bool   UICustomMenuItemVisible ( int ,  int );
native  void   UISetCustomMenuItemText ( playergroup ,  int ,  text );
native  void   UIShowCustomMenu ( playergroup ,  text );
native  void   UIShowCustomDialog ( playergroup ,  int ,  text ,  text ,  bool );
native  void   UISetResourceTradeCountdownTime ( int );
native  void   UISetButtonHighlighted ( playergroup ,  abilcmd ,  bool );
native  void   UISetMiniMapBackGroundColor ( color );
native  void   UISetCommandAllowed ( playergroup ,  int ,  bool );
native  void   UISetCommandDisallowedMessage ( playergroup ,  text );
native  void   UISetChallengeMode ( playergroup ,  bool );
native  void   UISetChallengeScoreText ( playergroup ,  string ,  text );
native  void   UISetChallengeHighScore ( playergroup ,  string ,  int );
native  void   UISetChallengeCompleted ( playergroup ,  string ,  bool );
native  void   TriggerAddEventAbortMission ( trigger ,  int );
native  void   TriggerAddEventCustomDialogDismissed ( trigger ,  int ,  int );
native  void   TriggerAddEventGameMenuItemSelected ( trigger ,  int ,  int );
native  void   TriggerAddEventMouseClicked ( trigger ,  int ,  int ,  bool );
native  void   TriggerAddEventKeyPressed ( trigger ,  int ,  int ,  bool ,  int ,  int ,  int );
native  void   TriggerAddEventButtonPressed ( trigger ,  int ,  string );
native  void   TriggerAddEventGameCreditsFinished ( trigger ,  int );
native  int   EventCustomDialogResult ( );
native  int   EventGameMenuItemSelected ( );
native  int   EventMouseClickedButton ( );
native  int   EventMouseClickedPosXUI ( );
native  int   EventMouseClickedPosYUI ( );
native  fixed   EventMouseClickedPosXWorld ( );
native  fixed   EventMouseClickedPosYWorld ( );
native  fixed   EventMouseClickedPosZWorld ( );
native  int   EventKeyPressed ( );
native  bool   EventKeyShift ( );
native  bool   EventKeyControl ( );
native  bool   EventKeyAlt ( );
native  string   EventButtonPressed ( );
native  void   VisEnable ( int ,  bool );
native  bool   VisIsEnabled ( int );
native  void   VisExploreArea ( int ,  region ,  bool ,  bool );
native  void   VisRevealArea ( int ,  region ,  fixed ,  bool );
native  revealer   VisRevealerCreate ( int ,  region );
native  revealer   VisRevealerLastCreated ( );
native  void   VisRevealerDestroy ( revealer );
native  void   VisRevealerEnable ( revealer ,  bool );
native  void   VisRevealerUpdate ( revealer );

评分

参与人数 1威望 +4 收起 理由
麦德三世 + 4 大赞!

查看全部评分

发表于 2010-2-19 15:49:23 | 显示全部楼层
于是墨白
回复

使用道具 举报

发表于 2010-2-19 15:52:37 | 显示全部楼层
这个是按出现顺序排列的么。。。
回复

使用道具 举报

发表于 2010-2-19 16:03:23 | 显示全部楼层
是按照地址偏移排列的吧
回复

使用道具 举报

发表于 2010-2-19 23:07:43 | 显示全部楼层
总算有native的wait函数了
这个连javascript中都没有哦, 脚本语言里需求很高的.
回复

使用道具 举报

发表于 2010-2-19 23:47:50 | 显示全部楼层
看起来非AI函数很少...
回复

使用道具 举报

发表于 2010-2-19 23:51:37 | 显示全部楼层
其他的函数应该是在TriggersLib之类里面的, 应该也是属于native函数的
回复

使用道具 举报

发表于 2010-2-20 04:10:49 | 显示全部楼层
AI看着眼花,非AI都好眼熟~~~
回复

使用道具 举报

发表于 2010-2-20 07:46:00 | 显示全部楼层
能干嘛,做高亮?
回复

使用道具 举报

发表于 2010-2-20 08:46:51 | 显示全部楼层
人工收集了一下已声明的native。可能会有遗漏吧
[codes=galaxy]
native trigger  TriggerCreate (string s);
native void     TriggerDestroy (trigger t);
native void     TriggerExecute (trigger t, bool testConds, bool runActions);
native void     TriggerAddEventMapInit (trigger t);
native void DebugString (string value);
native void DebugUnit (unit value);
native void DebugInt (int value);
native void DebugFixed (fixed value);
native void DebugPoint (point value);

native int AICast (unit u, order o, marker m, bool retreat);
native int AICastFlee (unit who, unit from, int distance, marker mark);
native bool AINearbyUnits (int player, string unitType, point p, fixed range, int requiredCount);
native unitgroup AIFindUnits (int player, string unitType, point p, fixed range, int inMaxCount);
native bool AISameCommand (unit u1, unit u2);
native unit AILastAttacker (unit u);
native int AILastAttack (unit u);
native bool AIControlWantsToMove (unit u);
native bool AIControlForceToMove (unit u);
native bool AIControlWantsToUnburrow (unit u);
native bool AIControlWantsToBurrow (unit u);
native bool AIControlForceUnburrow (unit u);
native bool AIUnitIsInCombat (unit u);
native bool AIIsIgnoredByWave (unit u);
native void AISetIgnoredByWave (unit u, bool enable);
native point AIGetHomePosition (unit u);
native point AIGetCloakedAttacker (int p);
native void AIClearCloakedAttacker (int p, point pt);
native bool AISawCloakedUnit (int p);
native point AIRandomSpawnPoint (
    int player,
    region r,
    fixed minDistFromEnemy,
    fixed maxDistFromEnemy,
    fixed maxDistFromBuilding
);
native point AIBestTargetPoint (
    unitgroup group,
    int minHits,
    int damageBase,
    fixed minScore,
    fixed radius,
    point from,
    fixed range,
    int bonusAttri
);
native unit AIDefaultCombatPriority (unit target, unitgroup attackers, unitgroup enemies);
native bool AICloakEvaluate (unit u, fixed minEnergy, fixed maxLife, fixed range);
native bool AICombatTargetProduction        (int player, int action);
native bool AICombatTargetDropOffs          (int player, int action);
native bool AICombatTargetFood              (int player, int action);
native bool AICombatTargetActiveProduction  (int player, int action);
native bool AICombatTargetWorkers           (int player, int action);
native bool AICombatTargetAllyThreats       (int player, int action);
native bool AICombatTargetSelfThreats       (int player, int action);
native bool AICombatTargetCurrent           (int player, int action);
native bool AICombatTargetAir               (int player, int action);
native bool AICombatTargetMovers            (int player, int action);
native bool AICombatTargetInjuries          (int player, int action);
native bool AICombatTargetInAttackRange     (int player, int action);
native bool AICombatTargetThreats           (int player, int action);
native bool AICombatTargetHealers           (int player, int action);
native bool AICombatTargetSiege             (int player, int action);
native bool AICombatTargetAttackers         (int player, int action);
native bool AICombatTargetSpecial           (int player, int action);
native bool AICombatAvoidTimedUnits         (int player, int action);
native bool AICombatAvoidNonThreats         (int player, int action);
native bool AICombatAvoidWeakUnits          (int player, int action);
native bool AICombatAvoidDisabledUnits      (int player, int action);
native void AITransportIgnore (int player, string unitType);
native void AITransportSetPanic (int player, fixed value);
native void AITransportSetReturn (int player, point center);
native waveinfo AIWaveInfoCreate ();
native waveinfo AIWaveInfo (wave w);
native void AIWaveInfoAdd (waveinfo info, string unitType, int count);
native int AIWaveInfoAttack (waveinfo info, int player, point from, wavetarget target, int time);
native int AIWaveInfoSuicide (waveinfo info, int player, point from, wavetarget target, int time);
native int AIWaveInfoScout (waveinfo info, int player, point from, int time);
native string AIWaveToString (wave w);
native text AIWaveToText (wave w);
native wave AIWaveCreate (waveinfo info, int player, point from);
native void AIWaveAddUnit (wave w, unit u);
native void AIWaveAddUnitPriority (wave w, unit u, int prio);
native void AIWaveRemoveUnit (wave w, unit u);
native int  AIWaveUnitCount (wave w);
native int  AIWaveDetectorCount (wave w);
native void AIWaveSetType (wave w, int type, wavetarget target);
native int AIWaveState (wave w);
native void AIWaveDelete (wave w);
native wavetarget AIWaveTargetUnit (unit u);
native wavetarget AIWaveTargetUnitGroup (unitgroup g);
native wavetarget AIWaveTargetUnitPoint (unit u);
native wavetarget AIWaveTargetPoint (point p);
native wavetarget AIWaveTargetPlayer (playergroup players);
native wavetarget AIWaveTargetMelee (int player);
native wavetarget AIWaveTargetMeleeHarass (int player);
native wavetarget AIWaveTargetMeleeDrop (int player, point dropLoc, point goalLoc);
native wavetarget AIWaveTargetMeleeDefend (int player);
native wavetarget AIWaveTargetMerge (wave w);
native wavetarget AIWaveTargetPatrol (int replaceType);
native wavetarget AIWaveTargetEscort (unitgroup g, int replaceType);
native wavetarget AIWaveTargetEscortNL (unitgroup g, int replaceType);
native wavetarget AIWaveTargetGatherO (int player, int town);
native wavetarget AIWaveTargetGatherD (int player, int town);
native wavetarget AIWaveTargetRegion (region r, int replaceType);
native point AIWaveTargetGatherOPoint (int player, int town);
native point AIWaveTargetGatherDPoint (int player, int town);
native unit         AIWaveTargetGetUnit (wavetarget wt);
native unitgroup    AIWaveTargetGetUnitGroup (wavetarget wt);
native wavetarget AIWaveHarassRetreat (int player, wave w, fixed range);
native wavetarget AIWaveGetTarget (wave w);
native bool AIWaveIsInCombat (wave w);
native int AIWaveGetTimeInCombat (wave w);
native int AIWaveGetTimeSinceCombat (wave w);
native int AIWaveGetTimeSinceOrdered (wave w);
native int AIWaveGetTimeSinceRetreat (wave w);
native bool AIDefenseThreat (int type, int player, wave w);
native int AIDefenseThreatEval (int type, int player);
native int AIWaveEval (wave w);
native int AIWaveEvalRatio (wave w, fixed range);
native int AIUnitAreaEvalRatio (unit u, fixed range);
native int AIEvalRatio (int player);
native void AIEvalSetCustomIndex (int index);
native int AILastWaveEvalStaticRatio ();
native void AIWaveTargetAddWaypoint (wavetarget wt, point waypoint, bool useTransport, int index);
native void AIWaveTargetClearWaypoints (wavetarget wt);
native wave AIWaveGet (int player, int waveName);
native void AIWaveSet (int player, int waveName, wave waveRef);
native int  AIWaveType (wave waveRef);
native void AIWaveMerge (int player, int waveFrom, int waveInto);
native void AIWaveMergeMelee (int player);
native wave WaveLastCreated ();
native point AIGetBestTarget (int player, playergroup enemies, point gatherPoint, int flags);
native bool AIFindDropAttackTarget (int player, point gatherPoint);
native point AILastDropLocation ();
native point AILastDropGoal ();
native fixed AIGetNextDropTimeCheck(int player);
native void AISetNextDropTimeCheck(int player, fixed time);
native int AILastAttackRatio (wave w);
native int AILastAttackStartEval (wave w);
native void AIAttackWaveAddUnits (int difficulty, int count, string unitType);
native int AIAttackWaveSend (int player, int time, bool wait);
native void AIAttackWaveCancel (wave waveRef);
native void AIAttackWaveSetGatherPoint (int player, point gather);
native void AIAttackWaveUseUnit (int player, unit u);
native void AIAttackWaveUseGroup (int player, unitgroup ug);
native void AIAttackWaveAddEscortUnit (int player, unit u, unit escort, fixed offset, fixed angle);
native void AIAttackWaveAddEscortType (int player, string unitType, unit escort, fixed offset, fixed angle);
native void AIAttackWaveSetTargetUnit (int player, unit u);
native void AIAttackWaveSetTargetUnitGroup (int player, unitgroup ug);
native void AIAttackWaveSetTargetUnitPoint (int player, unit u);
native void AIAttackWaveSetTargetPoint (int player, point p);
native void AIAttackWaveSetTargetPlayer (int player, playergroup players);
native void AIAttackWaveSetTargetMelee (int player);
native void AIAttackWaveSetTargetMeleeHarass (int player);
native void AIAttackWaveSetTargetMeleeDrop (int player, point dropLoc, point goalLoc);
native void AIAttackWaveSetTargetMeleeDefend (int player);
native void AIAttackWaveSetTargetMerge (int player, wave w);
native void AIAttackWaveSetTargetPatrol (int player, int replaceType);
native void AIAttackWaveSetTargetEscort (int player, unitgroup g, int replaceType);
native void AIAttackWaveSetTargetEscortNL (int player, unitgroup g, int replaceType);
native void AIAttackWaveSetTargetGatherO (int player, int town);
native void AIAttackWaveSetTargetGatherD (int player, int town);
native void AIAttackWaveSetTargetRegion (int player, region r, int replaceType);
native void AIAttackWaveSetGatherEarlyNoReplace (int player);
native void AIAttackWaveSetKeepAlive (int player);
native void AIAttackWaveAddWaypoint (int player, point waypoint, bool useTransport);
native void AIAttackWaveClearWaypoints (int player);
native void AISetMinimumBullyCount (int count, string unitType, int player);
native void AISetGeneralRebuildCount (int count, bool building, int player);
native void AISetSpecificRebuildCount (int count, string unitType, int player);
native void AISetBullyAttackWavePercent (int percent, int player);
native void AINearestTownLimitWaveGather (int player, bool enable);
native void AINearestTownBullyRebuild (int player, bool enable);
native void AIToggleBulliesInRegion (int player, region reg, bool activate);
native void AIResetBullyRebuildCountsInRegion (int player, region reg);
native void AIClearAllBullies (int player);
native void AIAddBully (int player, string unitType, point loc, int rebuildCount);
native string AIGetBullyType (unit u);
native void AISetDifficulty (int player, int index, bool state);
native bool AIGetDifficulty (int player, int index);
native void AIBaseThink (unit who, unitgroup candidates);
native bool AIEvalTacticalData (unit who, string data);
native int AIDefaultGetObjectType (int player, string aliasType);
native string AIDefaultGetMaker (int player, string aliasType);
native string AIDefaultGetFirstMissingReq (int player, string aliasType);
native string AIDefaultGetFirstUnfinishedReq (int player, string aliasType);
native int AIDefaultGetFullMakeTime (int player, string aliasType);
native string AIGetBaseName (string aliasType);
native string AIGetBuildAtName (string aliasType);
native void AIReqCountAsBuiltObject (int player, string aliasType);
native void AIReqAddSpecialMaker (string objType, string makerType, string abilName, int abilIndex);
native void AIDefaultEconomy (int player, string hall, string gas, string food, string peon, int cap, bool peonMode);
native void AIDefaultExpansion (int player, string hall, int minerals, int gas, int expandFlags);
native void AIClearLimitTech (int player);
native void AILimitTech (int player, int totalMin, int totalGas, int buildingMin, int buildingGas, int upgradeMin, int upgradeGas);
native void AIImportantTech (int player, string aliasType);
native void AILimitStockLarva (int player, string aliasType);
native bool AIHasStock (int player);
native bool AIHasStockFromTown (int player, int town);
native void AIRemoveStockFromTown (int player, int town);
native void AIClearStock (int player);
native void AIEnableStock (int player);
native void AISetStockEx (int player, int town, int count, string aliasType, int buildFlags, int stockFlags);
native void AISetStock (int player, int count, string aliasType);
native void AISetStockOpt (int player, int count, string aliasType);
native void AISetStockUnitNext (int player, int count, string aliasUnitType, bool when);
native bool AISetStockTown (int player, string aliasUnitTypeTH, string aliasUnitTypeGas);
native bool AISetStockExpand (int player, string aliasUnitTypeTH, int count);
native void AISetStockExtra (int player, int count, string aliasUnitType, int minerals);
native void AISetStockFarms (int player, string aliasUnitType, bool onlyNeeded);
native void AISetStockPeons (int player, int max, string aliasUnitType, bool onlyMinPeons, bool peonMode);
native void AINewTechStock (int player);
native void AITechStockAdd (string upgradeType);
native void AISetStockTechNext (int player);
native void AIBuild (int player, int priority, int town, string aliasUnitType, int count, int flags);
native void AITrain (int player, int priority, int town, string aliasUnitType, int count);
native void AIResearch (int player, int priority, int town, string aliasUpgradeType);
native void AIMakeAlways (int player, int priority, int town, string aliasType, int count);
native void AIMakeOnce (int player, int priority, int town, string aliasType, int count);
native void AIClearBuildQueue (int player);
native void AIClearTrainQueue (int player);
native void AIClearResearchQueue (int player);
native bool AIHasRes (int player, int minerals, int gas);
native int  AITechCount (int player, string aliasType, int countMask);
native void AITechCountFixupSingle (int player, string baseUnit, string upgradeOne);
native void AITechCountFixupEither (int player, string baseUnit, string upgradeOne, string upgradeTwo);
native void AITechCountFixupInOrder (int player, string baseUnit, string upgradeOne, string upgradeTwo);
native int  AIKnownUnitCount (int player, int testPlayerId, string aliasUnitType);
native void AIResetCounterUnits (int player);
native void AICounterUnit (int player, string seeWhat, fixed factor, string makeWhat);
native int AICounterUnits (int player, int testPlayerId, string makeWhat);
native point AIGetRallyPoint (unit u);
native void AISetPowerBuilding (int player, string building);
native void AISetCreepBuilding (int player, string building, string noCreepBehavior);
native void AIScout (int player);
native void AISetNumScouts (int player, int num);
native void AISetScoutTimes (int player, int starts, int obstructed, int resources, int other);
native point AIGetNextScoutLoc (int player);
native void AIClearCampaignScout (int player);
native void AIDeclareTown (int player, int town, point center);
native int AIGetMainTown (int player);
native void AISetMainTown (int player, int maintown);
native void AIUpdateMainTown (int player);
native int AIGetTownState (int player, int town);
native fixed AIGetTownEstablishedTime (int player, int town);
native point AIGetTownLocation (int player, int town);
native int AIGetClosestTown (int player, point location);
native int AIGetNextUnusedTownSlot (int player);
native int AIGetBuildingCountInTown (int player, int town, string aliasUnitType, int countMask);
native bool AIIsTownHarvestRunning (int player, int town);
native void AIHarvest (int player, int town);
native void AIHarvestRate (int player, int rate);
native void AIHarvestBonus (int player, fixed bonus);
native void AISetGasPeonCountOverride (int player, int town, int desiredGasCount);
native int AIGetCurPeonCount (int player, int town);
native int AIGetMinPeonCount (int player, int town);
native int AIGetMaxPeonCount (int player, int town);
native int AIGetMineralAmountLeft (int player, int town);
native int AIGetGasAmountLeft (int player, int town);
native int AIGetMineralNumSpots (int player, int town);
native int AIGetRawGasNumSpots (int player, int town);
native point AIGetGatherLocation (int player, int town);//xxx remove old functions
native point AIGetGatherDefLocation (int player, int town);
native int AIExpand (int player, point searchStart, string firstBuilding);
native unitgroup AIGetTownThreats (int player, int town);
native unit AIGetObstruction (int player);
native bool AIHasNearbyOpenExpansion (int player);
native void AIGlobalSuicide (int player);
native wave AIUnitGetWave (unit u);
native unitgroup AIWaveGetUnits (wave w);
native unitgroup AIGetAllEscorts (unit u);
native unitgroup AIGetAllEscortsGroup (unitgroup ug);
native void AIRemoveUnitFromAnyWaves (unit u);
native void AIRemoveGroupFromAnyWaves (unitgroup ug);
native unitgroup AIGetUnitsInWavesWithTarget (int player, wavetarget target);
native bool AIIsScriptControlled (unit u);
native void AISetUnitScriptControlled (unit u, bool enable);
native void AISetGroupScriptControlled (unitgroup ug, bool enable);
native bool AIIsSuicideUnit (unit u);
native void AISetUnitSuicide (unit u, bool enable);
native void AISetGroupSuicide (unitgroup ug, bool enable);
native bool AIIsNotUsableInWaves (unit u);
native void AISetUnitNotUsableInWaves (unit u, bool enable);
native void AISetGroupNotUsableInWaves (unitgroup ug, bool enable);
native void AISetWantsToUpgrade (unit u);
native void AIInitCampaignTowns (int player);
native void AIInitCampaignHarvest (int player);
native void AIStart (int player, bool isCampaign, int apm);
native bool AIGivingUp (int player);
native void AIGoodGame (int player);
native bool AIIsCampaign (int player);
native void AISetAPM (int player, int apm);
native unit AIGrabUnit (int player, string aliasUnitType, int prio, point location);
native int  AIState (int player, int index);
native void AISetSpecificState (int player, int index, int state);
native void AISetAllStates (int player, int state);
native void AISetFlag (int player, int index, bool state);
native bool AIGetFlag (int player, int index);
native void AITechFlag (int player, int index, int count, string what, int state);
native void AIResetUserData (int player);
native void AISetUserString (int player, int index, string data);
native string AIGetUserString (int player, int index);
native void AISetUserInt (int player, int index, int data);
native int AIGetUserInt (int player, int index);
native void AIAddStringInt (int player, string data, int change);
native fixed AIGetTime ();
native int AIGetTotalStartLocs ();
native int AIGetGroundStartLocs (point loc);
native int AIGetAirStartLocs (point loc);
native int AIGetTotalTownLocs ();
native int AIGetGroundTownLocs (point loc);
native int AIGetAirTownLocs (point loc);
native int AIRandomVal (int player, int which);
native void AINewChooseSubState (int player, int which, int min, int max, int defaultSubState);
native void AISetSubStateChance (int subState, int chance);
native int AIChooseSubState ();
native bool AIWantsMultipleTransport (int player);
native void AISetWantsMultipleTransport (int player, bool enable);
native int AIGetNumMobileTransports (int player);
native point AIGetBestCreepSpot (int player, unit creator, fixed createRadius);
native void AIAddDetectionDanger (int player, string unitType);
native bool AIDefaultSuspectDetectionDanger (int player);
native bool AIAnyWorkersFleeingNearby (int player, point loc, fixed radius);
native int AIGetNumEnemies (int player);
native int AIGetNumAllies (int player);
native point AIPlacementNearbyFindTest (int player, point loc, fixed range, string unitType);
native void AIAddToExtraScoutGroup (int player, unit u);
native bool AIOfferNewScout (int player, unit u);
native bool AIAnyAllyAttacking (int player);
native point AIBestAllyAttackPoint (int player, wave w);
native bool AIAnyAllyNeedsDefending (int player);
native point AIBestAllyDefendPoint (int player, wave w);
native aifilter AIFilter (int player);
native void AISetFilterAlliance (aifilter filter, int want);
native void AISetFilterMarker (aifilter filter, int min, int max, marker m);
native void AISetFilterSelf (aifilter filter, unit exclude);
native void AISetFilterBits (aifilter filter, unitfilter uf);
native void AISetFilterRange (aifilter filter, unit center, fixed radius);
native void AISetFilterLife (aifilter filter, fixed min, fixed max);
native void AISetFilterLifeLost (aifilter filter, fixed min, fixed max);
native void AISetFilterLifePercent (aifilter filter, fixed min, fixed max);
native void AISetFilterLifeSortReference (aifilter filter, fixed value, fixed distance);
native void AISetFilterLifeMod (aifilter filter, int type, fixed mod);
native void AISetFilterLifePerMarker (aifilter filter, fixed each, marker m);
native void AISetFilterShields (aifilter filter, fixed min, fixed max);
native void AISetFilterPlane (aifilter filter, int plane);
native void AISetFilterCanAttackEnemy (aifilter filter, int enemyGroundCount, int enemyAirCount);
native void AISetFilterCanAttackAlly (aifilter filter, bool groundAllies, bool airAllies);
native void AISetFilterBehaviorCount (aifilter filter, int minBehavior, int maxBehavior, string behaviorType);
native unitgroup AIGetFilterGroup (aifilter filter, unitgroup group);
native unitgroup AIFilterCasters (unitgroup group);
native unitgroup AIFilterPathable (unitgroup group, point inStart);
native unitgroup AIFilterGathering (unitgroup group, int inResource, fixed distance);
native fixed AIUnitGroupStrength (unitgroup inGroup);
native fixed AIAllyEnemyRatio (int player, point p, unitfilter filter, fixed range, fixed minThreshold);
native bool AIIsFollowingUnit (unit aiUnit, string unitType);
native int AIGetPlayerGroup (unitgroup inGroup);
native bool AINearbyPlaneTest (point p, int player, fixed range, int inPlane, int inAlliance);
native void AISetTacticalAttackTargetPoint (unit u, point t);
native void AISetTacticalAttackTargetUnit (unit u, unit t);
native order AIUnitGroupGetValidOrder(unitgroup inGroup, order inOrder, unit caster, bool forwards);
[/codes]
回复

使用道具 举报

发表于 2010-2-20 22:29:50 | 显示全部楼层
进化版GJ
回复

使用道具 举报

发表于 2010-2-20 22:38:11 | 显示全部楼层
眼花。
回复

使用道具 举报

发表于 2010-2-21 09:33:44 | 显示全部楼层
厉害厉害`~
楼主威武!!
回复

使用道具 举报

发表于 2010-2-21 16:50:53 | 显示全部楼层
哦哦语法加亮已经有了吗。。。
回复

使用道具 举报

发表于 2010-2-28 12:05:11 | 显示全部楼层
这个list是怎么弄出来的啊?求赐教!
回复

使用道具 举报

发表于 2010-2-28 13:00:23 | 显示全部楼层
ida分析sc2.exe
lz那都说的很清楚了
回复

使用道具 举报

发表于 2010-3-2 09:28:50 | 显示全部楼层
这个表真强大......

WAR3的非AI native函数远不止100吧,难道SC2的地图编辑器连接口都还没做完么
回复

使用道具 举报

发表于 2010-3-2 11:18:41 | 显示全部楼层
学习了~
回复

使用道具 举报

发表于 2010-3-2 12:10:23 | 显示全部楼层
完全不知道什么什么语言 函数 SC2的路过
回复

使用道具 举报

发表于 2010-3-2 12:37:07 | 显示全部楼层
显然暴雪已经完成了Native,只是还没放出而已。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-4-20 07:51 , Processed in 0.141725 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表