The Glest Wiki
(Adding categories)
(Expanded)
Line 38: Line 38:
 
| consoleMsg
 
| consoleMsg
 
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No
 
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No
+
| style="background-color: #FFFF8C;" | <span style="display: none;">2</span> addConsoleText()
 
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes
 
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes
 
|-
 
|-
Line 149: Line 149:
 
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes
 
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes
 
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes
 
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes
  +
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes
  +
|-
  +
| giveStopCommand<ref>While MegaGlest's <tt>giveAttackStoppedCommand()</tt> function is able to issue attack stopped commands like <tt>giveStopCommand()</tt> can, only <tt>giveStopCommand()</tt> is able to give a regular stop command, as well.</ref>
  +
| style="background-color: #FFC1C1;" | <span style="display: none;">3</span> No
  +
| style="background-color: #FFFF8C;" | <span style="display: none;">2</span> giveAttackStoppedCommand()
 
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes
 
| style="background-color: #CBFFB5;" | <span style="display: none;">1</span> Yes
 
|-
 
|-

Revision as of 19:48, 20 November 2011

Functions

Function Glest MegaGlest GAE
addActor 3 No 3 No 1 Yes
addConsoleText 3 No 1 Yes 2 consoleMsg()
addConsoleLangText 3 No 1 Yes 3 No
addDialog 3 No 3 No 1 Yes
clearDisplayText 1 Yes 1 Yes 1 Yes
clearHighlights 3 No 3 No 1 Yes
consoleMsg 3 No 2 addConsoleText() 1 Yes
createUnit 1 Yes 1 Yes 1 Yes
damageUnit 3 No 3 No 1 Yes
debugLog 3 No 3 No 1 Yes
destroyUnit[1] 3 No 1 Yes 1 Yes
disableAi 1 Yes 1 Yes 1 Yes
disableConsume 3 No 1 Yes 3 No
displayFormattedText 3 No 1 Yes 3 No
displayFormattedLangText 3 No 1 Yes 3 No
enableAi 3 No 1 Yes 3 No
enableConsume 3 No 1 Yes 3 No
endGame 1 Yes 1 Yes 1 Yes
factionTypeName 3 No 3 No 1 Yes
gameWon 3 No 1 Yes 3 No
getAiEnabled 3 No 1 Yes 3 No
getCellTriggerEventCount 3 No 1 Yes 3 No
getConsumeEnabled 3 No 1 Yes 3 No
giveAttackCommand 1 Yes 1 Yes 1 Yes
giveAttackStoppedCommand 3 No 1 Yes 2 giveStopCommand()
giveKills 3 No 1 Yes 3 No
giveResource 1 Yes 1 Yes 1 Yes
givePositionCommand 1 Yes 1 Yes 1 Yes
giveProductionCommand 1 Yes 1 Yes 1 Yes
giveStopCommand[2] 3 No 2 giveAttackStoppedCommand() 1 Yes
giveTargetCommand 3 No 3 No 1 Yes
giveUpgradeCommand 1 Yes 1 Yes 1 Yes
highlightCell 3 No 3 No 1 Yes
highlightRegion 3 No 3 No 1 Yes
lastAttackedUnit 3 No 1 Yes 3 No
lastAttackedUnitName 3 No 1 Yes 3 No
lastAttackingUnit 3 No 1 Yes 3 No
lastAttackingUnitName 3 No 1 Yes 3 No
lastCreatedUnit 1 Yes 1 Yes 1 Yes
lastCreatedUnitName 1 Yes 1 Yes 1 Yes
lastDeadUnit 1 Yes 1 Yes 1 Yes
lastDeadUnitKiller 3 No 1 Yes 3 No
lastDeadUnitKillerName 3 No 1 Yes 3 No
lastDeadUnitName 1 Yes 1 Yes 1 Yes
lockInput 3 No 3 No 1 Yes
morphToUnit 3 No 1 Yes 3 No
moveToUnit[3] 3 No 1 Yes 3 No
playerName 3 No 3 No 1 Yes
playStaticSound 3 No 1 Yes 3 No
playStreamingSound 3 No 1 Yes 3 No
registerCellTriggerEventForFactionToLocation 3 No 1 Yes 3 No
registerCellTriggerEventForFactionToUnit 3 No 1 Yes 3 No
registerCellTriggerEventForUnitToLocation 3 No 1 Yes 3 No
registerCellTriggerEventForUnitToUnit 3 No 1 Yes 3 No
resetTimerEvent 3 No 1 Yes 3 No
resourceAmount 1 Yes 1 Yes 1 Yes
scenarioDir 3 No 3 No 1 Yes
setCameraMotion 3 No 3 No 1 Yes
setCameraPosition 1 Yes 1 Yes 1 Yes
setDisplayText 1 Yes 1 Yes 1 Yes
setPlayerAsWinner 1 Yes 1 Yes 1 Yes
showMessage 1 Yes 1 Yes 1 Yes
startLocation 1 Yes 1 Yes 1 Yes
startTimerEvent 3 No 1 Yes 3 No
stopAllSound 3 No 1 Yes 3 No
stopStreamingSound 3 No 1 Yes 3 No
stopTimerEvent 3 No 1 Yes 3 No
timerEventSecondsElapsed 3 No 1 Yes 3 No
togglePauseGame 3 No 1 Yes 3 No
triggeredCellEventId 3 No 1 Yes 3 No
triggeredTimerEventId 3 No 1 Yes 3 No
unfogMap 3 No 3 No 1 Yes
unitCount 1 Yes 1 Yes 1 Yes
unitCountOfType 1 Yes 1 Yes 1 Yes
unitFaction 1 Yes 1 Yes 1 Yes
unitPosition 1 Yes 1 Yes 1 Yes
unlockInput 3 No 3 No 1 Yes
unregisterCellTriggerEvent 3 No 1 Yes 3 No
  1. MegaGlest's implementation only allows for the unit ID to be passed, GAE's allows unit ID and whether or not to make it clean (display the dead body).
  2. While MegaGlest's giveAttackStoppedCommand() function is able to issue attack stopped commands like giveStopCommand() can, only giveStopCommand() is able to give a regular stop command, as well.
  3. Other engines can specify to move to a unit by using unitPosition(), but they'll move directly to the location, whereas moveToUnit() moves to current location of the unit until it is reached.

XML events

Event Glest MegaGlest GAE
cellTriggerEvent 3 No 1 Yes 3 No
gameOver 3 No 1 Yes 3 No
resourceHarvested 1 Yes 1 Yes 1 Yes
startup 1 Yes 1 Yes 1 Yes
timer[1] 3 No 3 No 1 Yes
timerTriggerEvent[1] 3 No 1 Yes 3 No
unitAttacked 3 No 1 Yes 3 No
unitAttacking 3 No 1 Yes 3 No
unitCreatedOfType 1 Yes 1 Yes 1 Yes
unitDied 1 Yes 1 Yes 1 Yes
  1. 1.0 1.1 timer in GAE and timerTriggerEvent in MegaGlest perform the same function.