Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: Square Move(Square.Direction, int)

Declaration

public Square Move(
    Square.Direction dir,
    int amount = 1
)

Summary

Moves the current cell a number of spaces in the specified direction.

Parameters

Square.Directiondir Direction to move in.
intamount Number of cells to move by. Default is 1.

Exceptions

  • System.ArgumentOutOfRangeException
    The value of dir was not one of the defined enum values of Square.Direction.