Ejemplo n.º 1
0
 /// <summary>
 /// This is a class contructor that allows me to pass A reference of the word handlers' data
 /// structure and the game engine. The constructor then parses the parameters to the classes
 /// private varaibles so that they can be used througout the class.
 /// </summary>
 /// <param name="DataStructure"></param>
 /// <param name="Game"></param>
 public AI(HeaderNode DataStructure, GameEngine Game)
 {
     MyDataStructure = DataStructure;                                                     //Sets Private variable MyDataStructure to the Parameter DataStructure
     MyGame          = Game;                                                              //Sets the Private variable MyGame to the parameter Game
     Console.WriteLine("AI STARTED SUCCESSFULLY - With a DataStructure and GameEngine!"); //Writes to the Debug console that the Ai was Initiated correctly
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This function allows other objects to parse a reference of the data structure
 /// to use to the word handler and set it to its internal reference.
 /// </summary>
 /// <param name="datastructure"></param>
 public void MyStructure(HeaderNode datastructure)
 {
     structure = datastructure;//Sets the local definition for Data structure to the one parsed to it during creation
 }