C# 클래스 RecordRobot.Maze

파일 보기 프로젝트 열기: scastle/EECS290_Project1

공개 프로퍼티들

프로퍼티 타입 설명
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