示例#1
0
 public void WriteLine(string str)
 {
     foreach (char c in str)
     {
         _BuffWorking[PosY, PosX] = new SConChar(c, ForeCol, BackCol);
         IncCursor();
     }
     CReturn();
 }
示例#2
0
        public override bool Equals(object obj)
        {
            if (!(obj is SConChar))
            {
                return(false);
            }

            SConChar other = (SConChar)obj;

            return(this.Code.Equals(other.Code) && this.ForeCol.Equals(other.ForeCol) && this.BackCol.Equals(other.BackCol));
        }
示例#3
0
        public void WriteChar(int x, int y, char c)
        {
            if (x < 0 || x > 79)
            {
                return;
            }
            if (y < 0 || y > 23)
            {
                return;
            }
            if (c < 0 || c > 127)
            {
                return;
            }

            _BuffWorking[y, x] = new SConChar(c, ForeCol, BackCol);
        }
示例#4
0
 public void WriteLine(string str)
 {
     foreach (char c in str)
     {
         _BuffWorking[PosY, PosX] = new SConChar(c, ForeCol, BackCol);
         IncCursor();
     }
     CReturn();
 }
示例#5
0
        public void WriteChar(int x, int y, char c)
        {
            if (x < 0 || x > 79)
                return;
            if (y < 0 || y > 23)
                return;
            if (c < 0 || c > 127)
                return;

            _BuffWorking[y, x] = new SConChar(c, ForeCol, BackCol);
        }