<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://redmine.mygui.info/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://redmine.mygui.info/wiki/index.php?action=history&amp;feed=atom&amp;title=Action_Functions</id>
		<title>Action Functions - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://redmine.mygui.info/wiki/index.php?action=history&amp;feed=atom&amp;title=Action_Functions"/>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php?title=Action_Functions&amp;action=history"/>
		<updated>2026-05-20T20:48:54Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.1</generator>

	<entry>
		<id>http://redmine.mygui.info/wiki/index.php?title=Action_Functions&amp;diff=1346&amp;oldid=prev</id>
		<title>Jed: New page: Category:Scripts An action object represents an action either about to happen or that already happened or that you are building to have happen.  == Example ==  void afterAction(Action ...</title>
		<link rel="alternate" type="text/html" href="http://redmine.mygui.info/wiki/index.php?title=Action_Functions&amp;diff=1346&amp;oldid=prev"/>
				<updated>2010-04-14T19:09:37Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &lt;a href=&quot;/wiki/index.php?title=Category:Scripts&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Scripts (page does not exist)&quot;&gt;Category:Scripts&lt;/a&gt; An action object represents an action either about to happen or that already happened or that you are building to have happen.  == Example ==  void afterAction(Action ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Scripts]]&lt;br /&gt;
An action object represents an action either about to happen or that already happened or that you are building to have happen.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 void afterAction(Action action)&lt;br /&gt;
 {&lt;br /&gt;
        if(action.getCardActor().getName()==&amp;quot;Bindweed&amp;quot;)&lt;br /&gt;
 	{&lt;br /&gt;
 		Entity target=action.getEntityTarget(0);&lt;br /&gt;
 		if( target.getController()==gAIPlayer)&lt;br /&gt;
 		{&lt;br /&gt;
 			string msg=&amp;quot;Bindweed on the enemy????&amp;quot;;&lt;br /&gt;
                        statusMsg(nullPlayer,msg);&lt;br /&gt;
 		}&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== Constructors ==&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
 int '''getType'''();&lt;br /&gt;
 // possible values: MOVE, MELEE, SHOOT, OTHER &lt;br /&gt;
 &lt;br /&gt;
 Player '''getController'''();&lt;br /&gt;
 &lt;br /&gt;
 Card '''getCardActor'''();&lt;br /&gt;
 // Card will be invalid if this wasn't a card that acted&lt;br /&gt;
 &lt;br /&gt;
 Entity '''getEntityActor'''();&lt;br /&gt;
 // Entity will be invalid if this wasn't an Entity that acted&lt;br /&gt;
  &lt;br /&gt;
 Entity '''getEntityTarget'''(int index)&lt;br /&gt;
 &lt;br /&gt;
 Location '''getLocTarget'''(int index)&lt;/div&gt;</summary>
		<author><name>Jed</name></author>	</entry>

	</feed>