C# Class RecordRobot.Maze

Datei anzeigen Open project: scastle/EECS290_Project1

Public Properties

Property Type Description
grid bool[,,]
level int

Public Methods

Method Description
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

Method Details

CanGo() public static method

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
return bool

Draw() public static method

public static Draw ( ) : void
return void

IsDeadEnd() public static method

public static IsDeadEnd ( Point p ) : bool
p Point
return bool

IsIntersection() public static method

Checks if the specified point is an intersection
public static IsIntersection ( Point p ) : bool
p Point The point to check
return bool

LoadMaze() public static method

Loads all levels into 3d matrix at beginning of the game.
public static LoadMaze ( int map ) : void
map int
return void

getPointToPlace() public static method

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
return Point

Property Details

grid public_oe static_oe property

public static bool[,,] grid
return bool[,,]

level public_oe static_oe property

public static int level
return int