C# Class GridCell, RoverGame

Inheritance: MonoBehaviour
Mostra file Open project: Stumpstump/RoverGame Class Usage Examples

Public Properties

Property Type Description
PulsateGrid bool
adjacents List
currentlyUsed bool
elementPairIndex int
gridIngredient Ingredient
gridLineIndex int
index int
isEmpty bool
myPairColor Color
myPairSize Vector2
pulseColor Color
pulseTime float
pulseUp bool
topBackgroundColor Color
tragetIndex int

Public Methods

Method Description
DefineAdjacents ( int i, int j ) : void

Define the adjacents of the GridCell.

OneOfAdjacents ( int adjacentIndex ) : bool

Check if the given adjacent index is one of the Adjacents or Not.

Reset ( ) : void

Reset Attributes

Start ( ) : void
Update ( ) : void

Private Methods

Method Description
AddAdjacent ( Vector2 adjacent ) : void

Adds the adjacent index (GridCell index) to the Adjacents List.

Method Details

DefineAdjacents() public method

Define the adjacents of the GridCell.
public DefineAdjacents ( int i, int j ) : void
i int The index of the Row such that 0=< i < NumberOfRows .
j int The index of the Column such that 0=< j < NumberOfColumns .
return void

OneOfAdjacents() public method

Check if the given adjacent index is one of the Adjacents or Not.
public OneOfAdjacents ( int adjacentIndex ) : bool
adjacentIndex int an Adjacent index.
return bool

Reset() public method

Reset Attributes
public Reset ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

PulsateGrid public_oe property

public bool PulsateGrid
return bool

adjacents public_oe property

The surrounded adjacents of the GridCell. (Contains the indexes of the adjacents (neighbours))
public List adjacents
return List

currentlyUsed public_oe property

Whether the GridCell is used.
public bool currentlyUsed
return bool

elementPairIndex public_oe property

The index of the element(dots) pair.
public int elementPairIndex
return int

gridIngredient public_oe property

The correlated Ingredient for this grid's type.
public Ingredient gridIngredient
return Ingredient

gridLineIndex public_oe property

The index of the grid line.
public int gridLineIndex
return int

index public_oe property

The index of the GridCell in the Grid.
public int index
return int

isEmpty public_oe property

Whether the GridCell is empty.
public bool isEmpty
return bool

myPairColor public_oe property

public Color myPairColor
return Color

myPairSize public_oe property

public Vector2 myPairSize
return Vector2

pulseColor public_oe property

public Color pulseColor
return Color

pulseTime public_oe property

public float pulseTime
return float

pulseUp public_oe property

public bool pulseUp
return bool

topBackgroundColor public_oe property

The color of the top background.
public Color topBackgroundColor
return Color

tragetIndex public_oe property

The index of the traget(partner).
public int tragetIndex
return int