C# 클래스 CellGrid

CellGrid class keeps track of the game, stores cells, units and players objects. It starts the game and makes turn transitions. It reacts to user interacting with units or cells, and raises events related to game progress.
상속: MonoBehaviour
파일 보기 프로젝트 열기: TheJP/GlobalGameJam2016 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
PlayersParent Transform

공개 메소드들

메소드 설명
EndTurn ( ) : void

Method makes turn transitions. It is called by player at the end of his turn.

Start ( ) : void
StartGame ( ) : void

Method is called once, at the beggining of the game.

비공개 메소드들

메소드 설명
OnCellClicked ( object sender, EventArgs e ) : void
OnCellDehighlighted ( object sender, EventArgs e ) : void
OnCellHighlighted ( object sender, EventArgs e ) : void
OnUnitClicked ( object sender, EventArgs e ) : void
OnUnitDestroyed ( object sender, AttackEventArgs, e ) : void

메소드 상세

EndTurn() 공개 메소드

Method makes turn transitions. It is called by player at the end of his turn.
public EndTurn ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

StartGame() 공개 메소드

Method is called once, at the beggining of the game.
public StartGame ( ) : void
리턴 void

프로퍼티 상세

PlayersParent 공개적으로 프로퍼티

public Transform PlayersParent
리턴 Transform