Difference between revisions of "Change Action"

From AgentCubes
Jump to navigation Jump to search
imported>Andri
imported>Mike
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[image:Change action.png|200px]]
+
[[Image:Change action.png|200px|Change action.png]]  
  
<table cellpadding="10" cellspacing="0" border="0" width="100%">
+
{| cellpadding="10" cellspacing="0" border="0" width="100%"
<tr>
+
|-
<td align="left" valign="top" width="80"><b>Definition:</b></td>
+
| align="left" valign="top" width="80" | '''Definition:'''
<td align="left" valign="top" width="100%">The <strong>Move-Random-On</strong> action lets an agent move randomly onto any of its immediate neighbors that have a shape displayed in the [[Shape parameter]]. The agent chooses one of its nine qualifying neighbors (the eight around it and the current location) to move onto at random.</td>
+
| align="left" valign="top" width="100%" | The '''Change''' action: ''changes a specified agent to the shape specified.&nbsp;''
</tr>
+
|-
<tr>
+
| align="left" valign="top" width="80" | '''Parameters:'''
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
+
| align="left" valign="top" width="100%" |  
<td align="left" valign="top" width="100%">[[Shape parameter|shape]]</td>
+
[[Direction parameter|Direction]]: ''specifies which agent (self or adjacent) to change.''
</tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Additional Parameters:</b></td>
 
<td align="left" valign="top" width="100%">[[Animation parameter|animation]], [[Animation time parameter|time]]: the move random on action can animate the movement with accelerated or constant speed; and it can make the movement happen instantly (if time is 0) or it can take any amount of time to perform the animation. The slider() option in the time parameter connects the animation time to the slider located above the world, next to the other world controls.</td>
 
</tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Example:</b></td>
 
<td align="left" valign="top" width="100%">???WHICH EXAMPLE???
 
[[Image:Change action example.png|500px]]</td>
 
</tr>
 
  
</table>
+
[[Attribute name parameter|Changeto]]: ''specifies how to change the target agent.''
 +
 
 +
<br>  
 +
 
 +
|-
 +
| align="left" valign="top" width="80" | '''Additional Parameters:'''
 +
| align="left" valign="top" width="100%" |
 +
|-
 +
| align="left" valign="top" width="80" | '''Example:'''
 +
 
 +
| align="left" valign="top" width="100%" | &nbsp;[[Image:Change action example.png|500px]]
 +
|}
  
 
[[Category:AgentCubes_Actions]]
 
[[Category:AgentCubes_Actions]]

Latest revision as of 00:19, 21 April 2012

Change action.png

Definition: The Change action: changes a specified agent to the shape specified. 
Parameters:

Direction: specifies which agent (self or adjacent) to change.

Changeto: specifies how to change the target agent.


Additional Parameters:
Example:  500px