C# Class RandomElementOnMapGenerator, PuzzleGameProject

Show file Open project: Cedric-Paris/PuzzleGameProject Class Usage Examples

Public Methods

Method Description
GenerateRandom ( int hauteur, int largeur, int nbChangeDir ) : ].int[
getTabActionsPossible ( ) : int>.Dictionary

Private Methods

Method Description
AjouterDirection ( string direction ) : void
ChoisirDirection ( string current ) : string
ConvertTabInt ( ElementName, tab, int hauteur, int largeur ) : ].int[
DefinirDistance ( Point2D, pos, string direction, int hauteur, int largeur ) : int
DrawChemin ( ElementName, tab, Point2D, pos, string direction, int distance ) : Point2D,
DrawCheminEst ( ElementName, tab, Point2D, pos, int distance ) : Point2D,
DrawCheminNord ( ElementName, tab, Point2D, pos, int distance ) : Point2D,
DrawCheminOuest ( ElementName, tab, Point2D, pos, int distance ) : Point2D,
DrawCheminSud ( ElementName, tab, Point2D, pos, int distance ) : Point2D,
GenererCaseStartEnd ( ElementName, tab, int hauteur, int largeur, Point2D, end = null ) : Point2D,
GenererCheminAvecObjectif ( ElementName, tab, Point2D, posDepart, int nbChangementDirection, int hauteur, int largeur ) : void
GenererObjectifOnCurrentChemin ( ElementName, tab ) : void
GenererObstacle ( ElementName, tab, int nbObstacle, int hauteur, int largeur ) : void
VerifDirection ( string direction, Point2D, pos, int hauteur, int largeur ) : bool
VerifDistance ( ElementName, tab, Point2D, pos, string direction, int distance, int chDirection ) : bool

Method Details

GenerateRandom() public method

public GenerateRandom ( int hauteur, int largeur, int nbChangeDir ) : ].int[
hauteur int
largeur int
nbChangeDir int
return ].int[

getTabActionsPossible() public method

public getTabActionsPossible ( ) : int>.Dictionary
return int>.Dictionary