<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alioth.net/index.php?action=history&amp;feed=atom&amp;title=Diplomacy_Engine_API</id>
	<title>Diplomacy Engine API - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alioth.net/index.php?action=history&amp;feed=atom&amp;title=Diplomacy_Engine_API"/>
	<link rel="alternate" type="text/html" href="https://wiki.alioth.net/index.php?title=Diplomacy_Engine_API&amp;action=history"/>
	<updated>2026-04-30T06:03:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://wiki.alioth.net/index.php?title=Diplomacy_Engine_API&amp;diff=88523&amp;oldid=prev</id>
		<title>Cholmondely: Added Links</title>
		<link rel="alternate" type="text/html" href="https://wiki.alioth.net/index.php?title=Diplomacy_Engine_API&amp;diff=88523&amp;oldid=prev"/>
		<updated>2026-04-29T12:35:02Z</updated>

		<summary type="html">&lt;p&gt;Added Links&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:35, 29 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l67&quot; &gt;Line 67:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 67:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Before beginning a new 'turn', all the actions of the precedent turn have been realized.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Before beginning a new 'turn', all the actions of the precedent turn have been realized.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Links ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*[https://github.com/DaymareOn/Diplomacy Day's Diplomacy Github site]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:OXP API's]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:OXP API's]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cholmondely</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.alioth.net/index.php?title=Diplomacy_Engine_API&amp;diff=88521&amp;oldid=prev</id>
		<title>Cholmondely: Page created</title>
		<link rel="alternate" type="text/html" href="https://wiki.alioth.net/index.php?title=Diplomacy_Engine_API&amp;diff=88521&amp;oldid=prev"/>
		<updated>2026-04-29T12:27:42Z</updated>

		<summary type="html">&lt;p&gt;Page created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== OVERVIEW ===&lt;br /&gt;
This wiki page is copied from Cdr [[User:Day|Day]]'s &amp;quot;Diplomacy_EngineAPI_readme.txt&amp;quot; included inside his OXP.&lt;br /&gt;
&lt;br /&gt;
There are a couple of references to this API in his &amp;quot;Diplomacy_roadmap.txt&amp;quot; which merely mention the need to complete it.&lt;br /&gt;
&lt;br /&gt;
He changed the name of his OXP from Diplomacy to [[Diplomancy]] back in 2021&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NOTE ===&lt;br /&gt;
FIXME reintegrate this to DayDiplomacy_JsDocDiplomacy.js&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EventType ===&lt;br /&gt;
An 'EventType' is a string defined by an oxp developer. As an example, the system taxation EventType is &amp;quot;SELFTAX&amp;quot;.&lt;br /&gt;
EventTypes are stored in an ordered array, so that &amp;quot;Event&amp;quot;s' &amp;quot;Response&amp;quot;s and &amp;quot;Action&amp;quot;s may be executed in a designed order&lt;br /&gt;
(for example, &amp;quot;VICTORY&amp;quot; should follow &amp;quot;ATTACK&amp;quot; and not happen before :) ).&lt;br /&gt;
For a same EventType, recurrent &amp;quot;Action&amp;quot;s are executed before &amp;quot;Event&amp;quot;s.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ActorType ===&lt;br /&gt;
An 'ActorType' is a string defined by an oxp developer. As an example, the system ActorType is &amp;quot;SYSTEM&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
ActorTypes are stored in an ordered array, so that &amp;quot;Event&amp;quot;s' &amp;quot;Response&amp;quot;s and &amp;quot;Action&amp;quot;s may be executed in a designed order&lt;br /&gt;
(for example, &amp;quot;SYSTEM&amp;quot;s should act before &amp;quot;ALLIANCE&amp;quot;s as information come to alliances through their systems :) ).&lt;br /&gt;
&lt;br /&gt;
For a same ActorType, recurrent &amp;quot;Action&amp;quot;s are executed before &amp;quot;Event&amp;quot;s.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Action ===&lt;br /&gt;
An &amp;quot;Action&amp;quot; may be said init (only executed once at the creation of an Actor) or recurring (executed each turn).&lt;br /&gt;
&lt;br /&gt;
An &amp;quot;Action&amp;quot; encapsulates a function, which typically will fire Events, or act onto the Oolite world.&lt;br /&gt;
&lt;br /&gt;
It contains: an 'EventType', an 'ActorType' (whose kind of actors will execute this action?), and a function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Event ===&lt;br /&gt;
An &amp;quot;Event&amp;quot; is something done by an &amp;quot;Actor&amp;quot;, to which other Actors may react by some &amp;quot;Response&amp;quot;s.&lt;br /&gt;
&lt;br /&gt;
It contains: an 'EventType', the acting Actor id, and some args to be used by the Responses (defined by the oxp developer).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Actor ===&lt;br /&gt;
An &amp;quot;Actor&amp;quot; is everything which should react to events. Systems are Actors, Alliances will be.&lt;br /&gt;
&lt;br /&gt;
It contains : an 'ActorType', the Actor id, its responses, and the observing other actors' ids.&lt;br /&gt;
&lt;br /&gt;
An Actor observer is another actor which may react onto that actor events.&lt;br /&gt;
&lt;br /&gt;
This is useful so that for example only near systems may react to an event, and not far away systems.&lt;br /&gt;
&lt;br /&gt;
It's useful to limit the cpu load too by at least a factor 100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Response ===&lt;br /&gt;
A &amp;quot;Response&amp;quot; encapsulates a function.&lt;br /&gt;
&lt;br /&gt;
It contains: an Id, the 'EventType' to which it responds, the 'ActorType' of actors which will use this response, and a function which may use the args given in the event.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Timing ===&lt;br /&gt;
When docked in station, once every 10 frames, an action (event, response, etc) is realized.&lt;br /&gt;
&lt;br /&gt;
A 'turn' of events is allowed each jump.&lt;br /&gt;
&lt;br /&gt;
Before beginning a new 'turn', all the actions of the precedent turn have been realized.&lt;br /&gt;
&lt;br /&gt;
[[Category:OXP API's]]&lt;/div&gt;</summary>
		<author><name>Cholmondely</name></author>
		
	</entry>
</feed>