public BotScript(BotScript source) { variables = source.variables; outputs = source.outputs; operators = source.operators; lines = new List <Line>(); foreach (Line line in source.lines) { lines.Add(new Line(line)); } }
public World(Bot playerBot, Bot computerBot) { PlayerBot = playerBot; ComputerBot = computerBot; playerBotStartPos = PlayerBot.Position; playerBotStartAngle = PlayerBot.Angle; computerBotStartPos = computerBot.Position; computerBotStartAngle = computerBot.Angle; playerParser = new CodeParser(new String[0], Bot.inputVariables, Bot.outputVariables); BotScript computerScript = new BotScript(Bot.allVariables, Bot.outputVariables, Bot.operators, 50); computerParser = new CodeParser(new String[0], Bot.inputVariables, Bot.outputVariables); }