C# 클래스 HanoiTowers.Column

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: BrainProject/UnityTemp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
coloredLight UnityEngine.Light
ending bool
gameController GameController
starting bool

공개 메소드들

메소드 설명
Awake ( ) : void
OnMouseEnter ( ) : void

hightlight column on mouse enter

OnMouseExit ( ) : void

Turn off highlight on mouse exit

OnMouseUp ( ) : void

solve mouse click on this column.

Start ( ) : void
addDisk ( Disk newDisk ) : void

Add disk to this column

checkWinningCondition ( ) : void

Check if winning condidtions are fulfilled. If so, calls gameController.endGame()

getNumberofDisks ( ) : int

removeAllDisks ( ) : void
removeTopDisk ( ) : void
topDisk ( ) : Disk

비공개 메소드들

메소드 설명
isValidTarget ( int diskSize ) : bool

Checks, if this column is valid target for disk of given size.

메소드 상세

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

OnMouseEnter() 공개 메소드

hightlight column on mouse enter
public OnMouseEnter ( ) : void
리턴 void

OnMouseExit() 공개 메소드

Turn off highlight on mouse exit
public OnMouseExit ( ) : void
리턴 void

OnMouseUp() 공개 메소드

solve mouse click on this column.
public OnMouseUp ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

addDisk() 공개 메소드

Add disk to this column
public addDisk ( Disk newDisk ) : void
newDisk Disk reference to disk to be added
리턴 void

checkWinningCondition() 공개 메소드

Check if winning condidtions are fulfilled. If so, calls gameController.endGame()
public checkWinningCondition ( ) : void
리턴 void

getNumberofDisks() 공개 메소드

public getNumberofDisks ( ) : int
리턴 int

removeAllDisks() 공개 메소드

public removeAllDisks ( ) : void
리턴 void

removeTopDisk() 공개 메소드

public removeTopDisk ( ) : void
리턴 void

topDisk() 공개 메소드

public topDisk ( ) : Disk
리턴 Disk

프로퍼티 상세

coloredLight 공개적으로 프로퍼티

public Light,UnityEngine coloredLight
리턴 UnityEngine.Light

ending 공개적으로 프로퍼티

public bool ending
리턴 bool

gameController 공개적으로 프로퍼티

public GameController,HanoiTowers gameController
리턴 GameController

starting 공개적으로 프로퍼티

public bool starting
리턴 bool