Difference between revisions of "See Condition"

From AgentCubes
Jump to navigation Jump to search
imported>Andri
imported>Andri
Line 3: Line 3:
 
<tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Definition:</b></td>
 
<td align="left" valign="top" width="80"><b>Definition:</b></td>
<td align="left" valign="top" width="100%">The <strong>See </strong>condition checks if the agent at the cell indicated by the [[Direction parameter]] looks like the shape specified in the [[Shape parameter]]. The dot (.) refers to the agent itself.<br>
+
<td align="left" valign="top" width="100%">The <strong>See </strong>condition checks if the agent at the cell indicated by the [[Direction parameter]] looks like the shape specified in the [[Shape parameter]]. The dot (.) in the direction parameter refers to the agent itself, so the agent can check its own shape.<br>
      If the indicated cell contains the chosen depiction, the condition is true. Otherwise, the condition is false.</td>
+
      If the cell in the indicated contains the chosen shape, the See condition is true. Otherwise, the condition is false.</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>

Revision as of 15:54, 17 June 2011

See-condition.png

Definition: The See condition checks if the agent at the cell indicated by the Direction parameter looks like the shape specified in the Shape parameter. The dot (.) in the direction parameter refers to the agent itself, so the agent can check its own shape.
If the cell in the indicated contains the chosen shape, the See condition is true. Otherwise, the condition is false.
Parameters: direction, shape
Additional Parameters: layer
Example: The Shark agent in the Fish Tank simulation looks above it to see if there is a Fish agent to eat, and also checks to see if the Shark itself looks like a Shark going left and decides to change directions or move to the left.