C# Класс GameEngine.GameManager

GameManager is the class that handles a game, it handles all the gameobjects and runs the current turn based of the gameobjects Initative
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ActiveGameManager GameManager
GameObjects List
UnregisterEvent Action

Открытые методы

Метод Описание
GameManager ( ) : System
Register ( IGameObject gameObject ) : void

Add a object to the scene, gameObject is a IGameObject

RunTurn ( ) : void

When all decisions and actions are selected "RunTurn" should be called, and it will iterate through all the gameObjects and run their "Actions". Action is run on each GameObject in "GameObject" ordered by Descending Initative.

SelectNextCharacter ( ) : void

Sets CurrentCharacter To the next character in Party.

Unregister ( IGameObject gameObject ) : void

When somebody dies, or when a gameobject doesnt need to be called anyMore, Use Unregister, and it will be removes before the next "Turn"

Приватные методы

Метод Описание
SelectedCarachterOpaciySet ( ) : void

Описание методов

GameManager() публичный Метод

public GameManager ( ) : System
Результат System

Register() публичный Метод

Add a object to the scene, gameObject is a IGameObject
public Register ( IGameObject gameObject ) : void
gameObject IGameObject
Результат void

RunTurn() публичный Метод

When all decisions and actions are selected "RunTurn" should be called, and it will iterate through all the gameObjects and run their "Actions". Action is run on each GameObject in "GameObject" ordered by Descending Initative.
public RunTurn ( ) : void
Результат void

SelectNextCharacter() публичный Метод

Sets CurrentCharacter To the next character in Party.
public SelectNextCharacter ( ) : void
Результат void

Unregister() публичный Метод

When somebody dies, or when a gameobject doesnt need to be called anyMore, Use Unregister, and it will be removes before the next "Turn"
public Unregister ( IGameObject gameObject ) : void
gameObject IGameObject
Результат void

Описание свойств

ActiveGameManager публичное статическое свойство

public static GameManager,GameEngine ActiveGameManager
Результат GameManager

GameObjects публичное свойство

This is the list of all gameobjects in the "Scene", visible or not. Use the method Register To add new objects.
public List GameObjects
Результат List

UnregisterEvent публичное свойство

Action that is invoked in Unregister(IGameObject), before IGameObject is removed from GameManager
public Action UnregisterEvent
Результат Action