Inheritance: ICloneable
コード例 #1
0
ファイル: Aheui.cs プロジェクト: VBChunguk/cshaheui
        public int Execute(string aheui)
        {
            code = new CodePlane(aheui);
            cursor = new Cursor();

            return Execute();
        }
コード例 #2
0
ファイル: Cursor.cs プロジェクト: VBChunguk/cshaheui
 public object Clone()
 {
     Cursor ret = new Cursor();
     ret.X = X;
     ret.Y = Y;
     ret.V = V.Clone() as Velocity;
     return ret;
 }
コード例 #3
0
ファイル: AheuiCompiler.cs プロジェクト: VBChunguk/cshaheui
 public CursorReserver(Cursor cursor, Instruction instr)
 {
     Cursor = cursor;
     this.instr = instr;
 }
コード例 #4
0
ファイル: AheuiCompiler.cs プロジェクト: VBChunguk/cshaheui
 public void Load(string aheui)
 {
     ExecuteCache = new Dictionary<string, int>();
     Instructions = new List<Instruction>();
     CursorStack = new Stack<CursorReserver>();
     code = new CodePlane(aheui);
     CursorStack.Push(new CursorReserver(new Cursor(), null));
     while (CursorStack.Count > 0)
     {
         var p = CursorStack.Pop();
         cursor = p.Cursor;
         jumpAction = p.MakeJumpSetter();
         while (VirtualStep()) ;
     }
 }
コード例 #5
0
ファイル: Aheui.cs プロジェクト: VBChunguk/cshaheui
 public override void Reset()
 {
     base.Reset();
     cursor = new Cursor();
 }
コード例 #6
0
ファイル: Aheui.cs プロジェクト: VBChunguk/cshaheui
 public Aheui() : base()
 {
     cursor = new Cursor();
 }