C# Класс GridCell, RoverGame

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
AddAdjacent ( Vector2 adjacent ) : void

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

Описание методов

DefineAdjacents() публичный Метод

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 .
Результат void

OneOfAdjacents() публичный Метод

Check if the given adjacent index is one of the Adjacents or Not.
public OneOfAdjacents ( int adjacentIndex ) : bool
adjacentIndex int an Adjacent index.
Результат bool

Reset() публичный Метод

Reset Attributes
public Reset ( ) : void
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

PulsateGrid публичное свойство

public bool PulsateGrid
Результат bool

adjacents публичное свойство

The surrounded adjacents of the GridCell. (Contains the indexes of the adjacents (neighbours))
public List adjacents
Результат List

currentlyUsed публичное свойство

Whether the GridCell is used.
public bool currentlyUsed
Результат bool

elementPairIndex публичное свойство

The index of the element(dots) pair.
public int elementPairIndex
Результат int

gridIngredient публичное свойство

The correlated Ingredient for this grid's type.
public Ingredient gridIngredient
Результат Ingredient

gridLineIndex публичное свойство

The index of the grid line.
public int gridLineIndex
Результат int

index публичное свойство

The index of the GridCell in the Grid.
public int index
Результат int

isEmpty публичное свойство

Whether the GridCell is empty.
public bool isEmpty
Результат bool

myPairColor публичное свойство

public Color myPairColor
Результат Color

myPairSize публичное свойство

public Vector2 myPairSize
Результат Vector2

pulseColor публичное свойство

public Color pulseColor
Результат Color

pulseTime публичное свойство

public float pulseTime
Результат float

pulseUp публичное свойство

public bool pulseUp
Результат bool

topBackgroundColor публичное свойство

The color of the top background.
public Color topBackgroundColor
Результат Color

tragetIndex публичное свойство

The index of the traget(partner).
public int tragetIndex
Результат int