[This is preliminary documentation and is subject to change.]

Gets the standard width offset for the specified direction.

Namespace: org.critterai.nmgen
Assembly: cai-nmgen (in cai-nmgen.dll) Version: 0.4.0.0 (0.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static int GetDirOffsetX(
	int direction
)
Public Shared Function GetDirOffsetX ( _
	direction As Integer _
) As Integer
public:
static int GetDirOffsetX(
	int direction
)

Parameters

direction
Int32
The direction. [Limits: 0 <= value < 4]

Return Value

The width offset to the apply to the current cell position to move in the direction.

Remarks

The direction value will be automatically wrapped. So the a value of 6 will be interpreted as 2.

See Also