C# Class RecordRobot.Maze

Afficher le fichier Open project: scastle/EECS290_Project1

Méthodes publiques

Свойство Type Description
grid bool[,,]
level int

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

Draw() public static méthode

public static Draw ( ) : void
Résultat void

IsDeadEnd() public static méthode

public static IsDeadEnd ( Point p ) : bool
p Point
Résultat bool

IsIntersection() public static méthode

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

LoadMaze() public static méthode

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

getPointToPlace() public static méthode

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
Résultat Point

Property Details

grid public_oe static_oe property

public static bool[,,] grid
Résultat bool[,,]

level public_oe static_oe property

public static int level
Résultat int