C# Class LondonTower.LondonTowerGameManager

main class in london tower chaeck game statce, creat start, check end etc
Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: BrainProject/UnityTemp

Méthodes publiques

Свойство Type Description
levelSet int
minimap UnityEngine.GameObject
movingSphere bool
poles List
spherePrefab LondonToweSphereScript
spheres List
spheresIDColor Color>.Dictionary
state LondonTowerGameState
xmlLevels List

Méthodes publiques

Méthode Description
CheckWin ( ) : bool

check if player win, after each sphere move

GameEnd ( ) : void
IsPoleFull ( int polePosition ) : bool

check if pole if full - then cant place any sphere on it, until at least one sphere is removed

OnTop ( int poleID, int orderInPole ) : bool

check if sphere is on top/on given order pole so it player can moved with it

SetLevel ( LondonToweGameStartWinData startData ) : void

set level from startData, doesn matter if it for expample/screen or for game

SetOnTop ( LondonToweSphereScript sphere ) : void

after sphere is place it check if the sphere is definetly on top of pole and if not t place the sphere on top

StartGame ( ) : void

call at level start, create all necessary steps to load level, take screen etc

Private Methods

Méthode Description
Start ( ) : void

Method Details

CheckWin() public méthode

check if player win, after each sphere move
public CheckWin ( ) : bool
Résultat bool

GameEnd() public méthode

public GameEnd ( ) : void
Résultat void

IsPoleFull() public méthode

check if pole if full - then cant place any sphere on it, until at least one sphere is removed
public IsPoleFull ( int polePosition ) : bool
polePosition int
Résultat bool

OnTop() public méthode

check if sphere is on top/on given order pole so it player can moved with it
public OnTop ( int poleID, int orderInPole ) : bool
poleID int
orderInPole int
Résultat bool

SetLevel() public méthode

set level from startData, doesn matter if it for expample/screen or for game
public SetLevel ( LondonToweGameStartWinData startData ) : void
startData LondonToweGameStartWinData
Résultat void

SetOnTop() public méthode

after sphere is place it check if the sphere is definetly on top of pole and if not t place the sphere on top
public SetOnTop ( LondonToweSphereScript sphere ) : void
sphere LondonToweSphereScript
Résultat void

StartGame() public méthode

call at level start, create all necessary steps to load level, take screen etc
public StartGame ( ) : void
Résultat void

Property Details

levelSet public_oe static_oe property

data 1,2,3 choosing in main menu data 1,2,3,4 , random "level" from current dataset
public static int levelSet
Résultat int

minimap public_oe property

public GameObject,UnityEngine minimap
Résultat UnityEngine.GameObject

movingSphere public_oe property

public bool movingSphere
Résultat bool

poles public_oe property

public List poles
Résultat List

spherePrefab public_oe property

public LondonToweSphereScript spherePrefab
Résultat LondonToweSphereScript

spheres public_oe property

public List spheres
Résultat List

spheresIDColor public_oe static_oe property

parse string into color (string is from xml level files)
public static Dictionary spheresIDColor
Résultat Color>.Dictionary

state public_oe static_oe property

current game state
public static LondonTowerGameState state
Résultat LondonTowerGameState

xmlLevels public_oe property

public List xmlLevels
Résultat List