C# Class 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
Afficher le fichier Open project: Kursledare/Mookieraw Class Usage Examples

Méthodes publiques

Свойство Type Description
ActiveGameManager GameManager
GameObjects List
UnregisterEvent Action

Méthodes publiques

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

Private Methods

Méthode Description
SelectedCarachterOpaciySet ( ) : void

Method Details

GameManager() public méthode

public GameManager ( ) : System
Résultat System

Register() public méthode

Add a object to the scene, gameObject is a IGameObject
public Register ( IGameObject gameObject ) : void
gameObject IGameObject
Résultat void

RunTurn() public méthode

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
Résultat void

SelectNextCharacter() public méthode

Sets CurrentCharacter To the next character in Party.
public SelectNextCharacter ( ) : void
Résultat void

Unregister() public méthode

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
Résultat void

Property Details

ActiveGameManager public_oe static_oe property

public static GameManager,GameEngine ActiveGameManager
Résultat GameManager

GameObjects public_oe property

This is the list of all gameobjects in the "Scene", visible or not. Use the method Register To add new objects.
public List GameObjects
Résultat List

UnregisterEvent public_oe property

Action that is invoked in Unregister(IGameObject), before IGameObject is removed from GameManager
public Action UnregisterEvent
Résultat Action