C# Class HanoiTowers.Column

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: BrainProject/UnityTemp Class Usage Examples

Méthodes publiques

Свойство Type Description
coloredLight UnityEngine.Light
ending bool
gameController GameController
starting bool

Méthodes publiques

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

Private Methods

Méthode Description
isValidTarget ( int diskSize ) : bool

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

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

OnMouseEnter() public méthode

hightlight column on mouse enter
public OnMouseEnter ( ) : void
Résultat void

OnMouseExit() public méthode

Turn off highlight on mouse exit
public OnMouseExit ( ) : void
Résultat void

OnMouseUp() public méthode

solve mouse click on this column.
public OnMouseUp ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

addDisk() public méthode

Add disk to this column
public addDisk ( Disk newDisk ) : void
newDisk Disk reference to disk to be added
Résultat void

checkWinningCondition() public méthode

Check if winning condidtions are fulfilled. If so, calls gameController.endGame()
public checkWinningCondition ( ) : void
Résultat void

getNumberofDisks() public méthode

public getNumberofDisks ( ) : int
Résultat int

removeAllDisks() public méthode

public removeAllDisks ( ) : void
Résultat void

removeTopDisk() public méthode

public removeTopDisk ( ) : void
Résultat void

topDisk() public méthode

public topDisk ( ) : Disk
Résultat Disk

Property Details

coloredLight public_oe property

public Light,UnityEngine coloredLight
Résultat UnityEngine.Light

ending public_oe property

public bool ending
Résultat bool

gameController public_oe property

public GameController,HanoiTowers gameController
Résultat GameController

starting public_oe property

public bool starting
Résultat bool