C# 클래스 LondonTower.LondonTowerGameManager

main class in london tower chaeck game statce, creat start, check end etc
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: BrainProject/UnityTemp

공개 프로퍼티들

프로퍼티 타입 설명
levelSet int
minimap UnityEngine.GameObject
movingSphere bool
poles List
spherePrefab LondonToweSphereScript
spheres List
spheresIDColor Color>.Dictionary
state LondonTowerGameState
xmlLevels List

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Start ( ) : void

메소드 상세

CheckWin() 공개 메소드

check if player win, after each sphere move
public CheckWin ( ) : bool
리턴 bool

GameEnd() 공개 메소드

public GameEnd ( ) : void
리턴 void

IsPoleFull() 공개 메소드

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
리턴 bool

OnTop() 공개 메소드

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
리턴 bool

SetLevel() 공개 메소드

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

SetOnTop() 공개 메소드

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
리턴 void

StartGame() 공개 메소드

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

프로퍼티 상세

levelSet 공개적으로 정적으로 프로퍼티

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

minimap 공개적으로 프로퍼티

public GameObject,UnityEngine minimap
리턴 UnityEngine.GameObject

movingSphere 공개적으로 프로퍼티

public bool movingSphere
리턴 bool

poles 공개적으로 프로퍼티

public List poles
리턴 List

spherePrefab 공개적으로 프로퍼티

public LondonToweSphereScript spherePrefab
리턴 LondonToweSphereScript

spheres 공개적으로 프로퍼티

public List spheres
리턴 List

spheresIDColor 공개적으로 정적으로 프로퍼티

parse string into color (string is from xml level files)
public static Dictionary spheresIDColor
리턴 Color>.Dictionary

state 공개적으로 정적으로 프로퍼티

current game state
public static LondonTowerGameState state
리턴 LondonTowerGameState

xmlLevels 공개적으로 프로퍼티

public List xmlLevels
리턴 List