C# 클래스 GridCell, RoverGame

상속: MonoBehaviour
파일 보기 프로젝트 열기: Stumpstump/RoverGame 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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