38 lines
839 B
C#
38 lines
839 B
C#
|
|
|||
|
|
|||
|
using Debug.MinLong;
|
|||
|
using static Debug.Tanchishe.Main;
|
|||
|
|
|||
|
namespace Debug.Tanchishe;
|
|||
|
public class Zhixing
|
|||
|
{
|
|||
|
Main main;
|
|||
|
public Zhixing(Main main)
|
|||
|
{
|
|||
|
this.main = main;
|
|||
|
new Thread(Run).Start();
|
|||
|
|
|||
|
}
|
|||
|
public void Run()
|
|||
|
{
|
|||
|
//var chars = Program.chars;
|
|||
|
while (Program.IsWhile)
|
|||
|
{
|
|||
|
var she = main.she;
|
|||
|
switch (main.she.direction)
|
|||
|
{
|
|||
|
case 0:
|
|||
|
break;
|
|||
|
case 1:
|
|||
|
if (she.y > 0) // <20><>ֹԽ<D6B9><D4BD>
|
|||
|
{
|
|||
|
Program.chars[main.she.y--, she.x].Char = Program.ShowChar;
|
|||
|
Program.chars[main.she.y, she.x].Char = she.Char;
|
|||
|
//main.sx();
|
|||
|
}
|
|||
|
break;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|