C# Класс RecordRobot.Maze

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
grid bool[,,]
level int

Открытые методы

Метод Описание
CanGo ( Point p, Direction d ) : bool

Checks if the robot or record can move in the current direction

Draw ( ) : void
IsDeadEnd ( Point p ) : bool
IsIntersection ( Point p ) : bool

Checks if the specified point is an intersection

LoadMaze ( int map ) : void

Loads all levels into 3d matrix at beginning of the game.

getPointToPlace ( ) : Point

Finds a location in the maze where it is safe to place one of the objects, i.e. not a wall and no records right next to the robot

Описание методов

CanGo() публичный статический Метод

Checks if the robot or record can move in the current direction
public static CanGo ( Point p, Direction d ) : bool
p Point
d Direction the Location, and the direction to move
Результат bool

Draw() публичный статический Метод

public static Draw ( ) : void
Результат void

IsDeadEnd() публичный статический Метод

public static IsDeadEnd ( Point p ) : bool
p Point
Результат bool

IsIntersection() публичный статический Метод

Checks if the specified point is an intersection
public static IsIntersection ( Point p ) : bool
p Point The point to check
Результат bool

LoadMaze() публичный статический Метод

Loads all levels into 3d matrix at beginning of the game.
public static LoadMaze ( int map ) : void
map int
Результат void

getPointToPlace() публичный статический Метод

Finds a location in the maze where it is safe to place one of the objects, i.e. not a wall and no records right next to the robot
public static getPointToPlace ( ) : Point
Результат Point

Описание свойств

grid публичное статическое свойство

public static bool[,,] grid
Результат bool[,,]

level публичное статическое свойство

public static int level
Результат int