Cerebrum™
Loading...
Searching...
No Matches
Cerebrum.MyGameManager Class Reference
Inheritance diagram for Cerebrum.MyGameManager:
Collaboration diagram for Cerebrum.MyGameManager:

Public Member Functions

void dprint (string str)
 
virtual GameObject Create (string objPrefabName)
 
virtual IEnumerator CreateObject (string objPrefabName)
 
virtual void RemoveGameObject (string objName)
 
virtual GameObject FindGameObject (string objName)
 

Static Public Member Functions

static GameObject FindInaciveGameObject (string objName)
 Find game object even if it is inactive.
 

Public Attributes

string scenarioPath ="Scenarios"
 
string[] ScenarioFiles
 
string currentFileName
 
int maxJumpsPerFrame = 10
 
float gameDelay = 0.0f
 
bool MyDebugLog = false
 
bool displayLastCommands = false
 
bool debugCommands =false
 
Text DebugDialogText
 
bool debugBox =false
 
float debugStatementsDelay = 0f
 
string DebugDialog
 
bool debugCanvas =false
 
bool debugCommandEntry =false
 
string[] debugCommandList
 
string Dialog2
 
string Dialog1
 
string Dialog
 
float DialogOffset = 0.8f
 
ExpressionParser ep
 
GameObject createdGameObject = null
 
Texture2D DialogTexture = null
 
Texture2D Dialog1Texture = null
 
Texture2D Dialog2Texture = null
 
RectOffset DialogPadding
 
RectOffset DialoguePadding
 
string tempCommand =""
 

Static Public Attributes

static MyGameManager instance = null
 
static bool DebugLog = false
 

Protected Member Functions

bool CheckForDebugCanvas ()
 
virtual void Awake ()
 
virtual void Start ()
 
IEnumerator executeScenarioFiles (string[] fileNames)
 
virtual bool processObjectsCommand (string objName, string command, string cparams, out string retString)
 
bool processObjectCommand (GameObject go, string command, string cparams, out string retString)
 Send a GameObject command to appropriate GameObject(s)
 

Static Protected Member Functions

static GameObject[] FindGameObjects (string objName)
 

Protected Attributes

Dictionary< string, GameObject > gos = new Dictionary<string, GameObject>()
 
Dictionary< string, string > fullnames = new Dictionary<string, string>()
 
bool objectCreated = false
 
GameObject[] m_gameObjects
 

Member Function Documentation

◆ Awake()

virtual void Cerebrum.MyGameManager.Awake ( )
protectedvirtual

Reimplemented in Cerebrum.GameManager.

◆ CheckForDebugCanvas()

bool Cerebrum.MyGameManager.CheckForDebugCanvas ( )
protected
Here is the caller graph for this function:

◆ Create()

virtual GameObject Cerebrum.MyGameManager.Create ( string  objPrefabName)
virtual
Here is the caller graph for this function:

◆ CreateObject()

virtual IEnumerator Cerebrum.MyGameManager.CreateObject ( string  objPrefabName)
virtual

Reimplemented in Cerebrum.GameManager.

◆ dprint()

void Cerebrum.MyGameManager.dprint ( string  str)
Here is the caller graph for this function:

◆ executeScenarioFiles()

IEnumerator Cerebrum.MyGameManager.executeScenarioFiles ( string[]  fileNames)
protected
Here is the caller graph for this function:

◆ FindGameObject()

virtual GameObject Cerebrum.MyGameManager.FindGameObject ( string  objName)
virtual

Reimplemented in Cerebrum.GameManager.

Here is the caller graph for this function:

◆ FindGameObjects()

static GameObject[] Cerebrum.MyGameManager.FindGameObjects ( string  objName)
staticprotected

Find children objects of objName for commands meant for multiple objects Supports ANY and ALL patterns e.g.: Lights/ALL Returns list of children

Here is the caller graph for this function:

◆ FindInaciveGameObject()

static GameObject Cerebrum.MyGameManager.FindInaciveGameObject ( string  objName)
static

Find game object even if it is inactive.

Here is the caller graph for this function:

◆ processObjectCommand()

bool Cerebrum.MyGameManager.processObjectCommand ( GameObject  go,
string  command,
string  cparams,
out string  retString 
)
protected

Send a GameObject command to appropriate GameObject(s)

Here is the caller graph for this function:

◆ processObjectsCommand()

virtual bool Cerebrum.MyGameManager.processObjectsCommand ( string  objName,
string  command,
string  cparams,
out string  retString 
)
protectedvirtual

Process commands meant for multiple objects Supports ANY and ALL patterns e.g.: Lights/ALL

Reimplemented in Cerebrum.GameManager.

◆ RemoveGameObject()

virtual void Cerebrum.MyGameManager.RemoveGameObject ( string  objName)
virtual
Here is the caller graph for this function:

◆ Start()

virtual void Cerebrum.MyGameManager.Start ( )
protectedvirtual

Reimplemented in Cerebrum.GameManager.

Member Data Documentation

◆ createdGameObject

GameObject Cerebrum.MyGameManager.createdGameObject = null

◆ currentFileName

string Cerebrum.MyGameManager.currentFileName

◆ debugBox

bool Cerebrum.MyGameManager.debugBox =false

◆ debugCanvas

bool Cerebrum.MyGameManager.debugCanvas =false

◆ debugCommandEntry

bool Cerebrum.MyGameManager.debugCommandEntry =false

◆ debugCommandList

string [] Cerebrum.MyGameManager.debugCommandList

◆ debugCommands

bool Cerebrum.MyGameManager.debugCommands =false

◆ DebugDialog

string Cerebrum.MyGameManager.DebugDialog

◆ DebugDialogText

Text Cerebrum.MyGameManager.DebugDialogText

◆ DebugLog

bool Cerebrum.MyGameManager.DebugLog = false
static

◆ debugStatementsDelay

float Cerebrum.MyGameManager.debugStatementsDelay = 0f

◆ Dialog

string Cerebrum.MyGameManager.Dialog

◆ Dialog1

string Cerebrum.MyGameManager.Dialog1

◆ Dialog1Texture

Texture2D Cerebrum.MyGameManager.Dialog1Texture = null

◆ Dialog2

string Cerebrum.MyGameManager.Dialog2

◆ Dialog2Texture

Texture2D Cerebrum.MyGameManager.Dialog2Texture = null

◆ DialogOffset

float Cerebrum.MyGameManager.DialogOffset = 0.8f

◆ DialogPadding

RectOffset Cerebrum.MyGameManager.DialogPadding

◆ DialogTexture

Texture2D Cerebrum.MyGameManager.DialogTexture = null

◆ DialoguePadding

RectOffset Cerebrum.MyGameManager.DialoguePadding

◆ displayLastCommands

bool Cerebrum.MyGameManager.displayLastCommands = false

◆ ep

ExpressionParser Cerebrum.MyGameManager.ep

◆ fullnames

Dictionary<string, string> Cerebrum.MyGameManager.fullnames = new Dictionary<string, string>()
protected

◆ gameDelay

float Cerebrum.MyGameManager.gameDelay = 0.0f

◆ gos

Dictionary<string, GameObject> Cerebrum.MyGameManager.gos = new Dictionary<string, GameObject>()
protected

◆ instance

MyGameManager Cerebrum.MyGameManager.instance = null
static

◆ m_gameObjects

GameObject [] Cerebrum.MyGameManager.m_gameObjects
protected

◆ maxJumpsPerFrame

int Cerebrum.MyGameManager.maxJumpsPerFrame = 10

◆ MyDebugLog

bool Cerebrum.MyGameManager.MyDebugLog = false

◆ objectCreated

bool Cerebrum.MyGameManager.objectCreated = false
protected

◆ ScenarioFiles

string [] Cerebrum.MyGameManager.ScenarioFiles

◆ scenarioPath

string Cerebrum.MyGameManager.scenarioPath ="Scenarios"

◆ tempCommand

string Cerebrum.MyGameManager.tempCommand =""

The documentation for this class was generated from the following file: