C# Class CellMaster, DoomRoom

Inheritance: MonoBehaviour
Mostrar archivo Open project: EddieCameron/DoomRoom Class Usage Examples

Public Properties

Property Type Description
_areaSize float
_cellSize float
pathAffectingLayers LayerMask
wallDensity float

Public Methods

Method Description
Awake ( ) : void
GenLayout ( ) : void
GetCellAt ( Vector3 pos ) : Cell,
GetCellAt ( int x, int y ) : Cell,
GetPathAffectingLayers ( ) : LayerMask
OnDisable ( ) : void
Start ( ) : void

Private Methods

Method Description
AddCellToRoom ( Cell, newCell, int inRoom ) : bool

Adds the cell to given room.

OpenCellInDirection ( Cell, toOpen, Direction, inDir ) : Cell,

Opens the cell in direction.

PrintLayout ( ) : void
RandomDirection ( ) : Direction,

Method Details

Awake() public method

public Awake ( ) : void
return void

GenLayout() public method

public GenLayout ( ) : void
return void

GetCellAt() public static method

public static GetCellAt ( Vector3 pos ) : Cell,
pos Vector3
return Cell,

GetCellAt() public static method

public static GetCellAt ( int x, int y ) : Cell,
x int
y int
return Cell,

GetPathAffectingLayers() public static method

public static GetPathAffectingLayers ( ) : LayerMask
return LayerMask

OnDisable() public method

public OnDisable ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Property Details

_areaSize public_oe property

public float _areaSize
return float

_cellSize public_oe property

public float _cellSize
return float

pathAffectingLayers public_oe property

public LayerMask pathAffectingLayers
return LayerMask

wallDensity public_oe property

public float wallDensity
return float