Ejemplo n.º 1
0
 public void Init()
 {
     m_game = new LegacyGame(@"..\..\..\LegacyASLTests\test1.asl", null);
     m_game.PrintText += m_player.PrintText;
     m_game.Initialise(m_player);
     m_game.Begin();
 }
Ejemplo n.º 2
0
 public void Init()
 {
     m_game            = new LegacyGame(@"..\..\..\LegacyASLTests\test1.asl", null);
     m_game.PrintText += m_player.PrintText;
     m_game.Initialise(m_player);
     m_game.Begin();
 }
Ejemplo n.º 3
0
        public bool Initialise(IPlayer player, out List <string> errors)
        {
            bool result = m_game.Initialise(player);

            if (m_game.Errors.Count > 0)
            {
                errors = m_game.Errors;
                return(false);
            }
            else
            {
                errors = result ? new List <string> {
                    "Unable to initialise game"
                } : null;
                return(result);
            }
        }