示例#1
0
 public Bot(Levels.ParentLevel form)
 {
     pbxBot         = new System.Windows.Forms.PictureBox();
     parentForm     = form;
     pbxBot.Visible = true;
     pbxBot.Name    = "pbxBot";
     pbxBot.Size    = new System.Drawing.Size(30, 30);
 }
示例#2
0
 public Reader(string input, Props.Bot bot, Levels.ParentLevel form)
 {
     _inputText = input + "\n\n";
     this.bot   = bot;
     this.form  = form;
     _lineNo    = 0;
     variables.Clear();
 }
示例#3
0
 public Interpreter(string input, Props.Bot bot, Levels.ParentLevel form) : base(input, bot, form)
 {
     reset();
     while (_postText != "")
     {
         nextLine();
         processLine(_currentLine);
     }
 }
示例#4
0
 public ErrorChecker(string input, Props.Bot bot, Levels.ParentLevel form) : base(input, bot, form)
 {
     HasError = false;
     reset();
     do
     {
         findError();
         nextLine();
         _preIndex += _currentLine.Length + 1;
         if (_postText != "")
         {
             _preText = _inputText.Substring(0, _preIndex);
         }
     }while (_postText != "");
 }