User Tools

Site Tools


crpl:docs:getfieldcell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:getfieldcell [2014/10/01 15:02] – external edit 127.0.0.1crpl:docs:getfieldcell [2015/03/28 11:23] (current) – clarification warren
Line 1: Line 1:
-~~DISCUSSION~~ 
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#creeper_commands|Creeper Commands]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#creeper_commands|Creeper Commands]]
 =====  GetFieldCell  ===== =====  GetFieldCell  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| X, Y | AC_R/L, AC_U/D, Creeper_R/L, Creeper_U/D |'' x1 y1 -- n1 n2 n3 n4 ''|+| X, Y | Creeper_U/D, Creeper_R/L, AC_U/D, AC_R/|'' x1 y1 -- n1 n2 n3 n4 ''|
  
  
 === Description === === Description ===
 Gets the field strength at the specified location. Gets the field strength at the specified location.
 +
 +This command uses integer creeper (1000000 units per creeper pushed sideways).
  
 === Examples === === Examples ===
-Detect whether a given coordinate is within a field.  (The most common way that this would be true would be if the space were within an active shield.)+Detect whether a given coordinate is within a creeper field.  (The most common way that this would be true would be if the space were within an active shield.)
 <code>:InField <code>:InField
- GetFieldCell(<-x <-y) ->creeperUD ->creeperRL ->acUD ->acRL+ GetFieldCell(<-x <-y) ->acRL ->acUD ->creeperRL ->creeperUD
  if (<-creeperUD neq0 or (<-creeperRL neq0)) return (TRUE) endif  if (<-creeperUD neq0 or (<-creeperRL neq0)) return (TRUE) endif
  return(FALSE)  return(FALSE)
-</code> +</code> 
crpl/docs/getfieldcell.1412190170.txt.gz · Last modified: 2014/12/20 07:13 (external edit)