C# Class GridCell, RoverGame

Inheritance: MonoBehaviour
Afficher le fichier Open project: Stumpstump/RoverGame Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

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

Méthode Description
AddAdjacent ( Vector2 adjacent ) : void

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

Method Details

DefineAdjacents() public méthode

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 .
Résultat void

OneOfAdjacents() public méthode

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

Reset() public méthode

Reset Attributes
public Reset ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

PulsateGrid public_oe property

public bool PulsateGrid
Résultat bool

adjacents public_oe property

The surrounded adjacents of the GridCell. (Contains the indexes of the adjacents (neighbours))
public List adjacents
Résultat List

currentlyUsed public_oe property

Whether the GridCell is used.
public bool currentlyUsed
Résultat bool

elementPairIndex public_oe property

The index of the element(dots) pair.
public int elementPairIndex
Résultat int

gridIngredient public_oe property

The correlated Ingredient for this grid's type.
public Ingredient gridIngredient
Résultat Ingredient

gridLineIndex public_oe property

The index of the grid line.
public int gridLineIndex
Résultat int

index public_oe property

The index of the GridCell in the Grid.
public int index
Résultat int

isEmpty public_oe property

Whether the GridCell is empty.
public bool isEmpty
Résultat bool

myPairColor public_oe property

public Color myPairColor
Résultat Color

myPairSize public_oe property

public Vector2 myPairSize
Résultat Vector2

pulseColor public_oe property

public Color pulseColor
Résultat Color

pulseTime public_oe property

public float pulseTime
Résultat float

pulseUp public_oe property

public bool pulseUp
Résultat bool

topBackgroundColor public_oe property

The color of the top background.
public Color topBackgroundColor
Résultat Color

tragetIndex public_oe property

The index of the traget(partner).
public int tragetIndex
Résultat int