zsh_root
2024-01-02 7b595546af704983dbafcd0d385c8768ddacefc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package circle;
import java.util.Vector;
 
import Frame.DebugManage;
/**½âËã½á¹ûʵÐÄԲȦµÄ¼¯ºÏ*/
public class Dell_ResultYuang {
 
    static Vector<ResultYuang> restyuang_vecs=new Vector<ResultYuang>();
 
    /**ͨ¹ý¼üÖµÕÒµ½Ä³¸ö½á¹ûµÄÔ²*/
    public static ResultYuang get_resty(int key) {
        ResultYuang rsy=null;
        int size=restyuang_vecs.size();
        for(int i=0;i<size;i++) {
            ResultYuang rsy1=restyuang_vecs.get(i);
            int key1=rsy1.getKey();
            if(key1==key) {
                rsy=rsy1;
                break;
            }
        }
        return rsy;
    }
 
    /**Çå¿ÕËùÓÐÔ²*/
    public static void deleteall() {
        restyuang_vecs.removeAllElements();
    }
 
    /**Ìí¼ÓÒ»¸ö½á¹û¶ÔÏó*/
    public static void  add_resty(int x,int y,int z,int floor,int key,String text,String baoxu) {
        ResultYuang rsty=new ResultYuang();
        rsty.setFloor(floor);
        rsty.setKey(key);
        rsty.setX(x);
        rsty.setY(y);
        rsty.setZ(z);
        rsty.setText(text);
        restyuang_vecs.add(rsty);
        debugtable(x,y,z,floor,key,text,baoxu);
    }
 
 
    /**µ÷ÊÔ±í¸ñÌí¼ÓÒ»ÌõÊý¾Ý*/
    public static void debugtable(int x,int y,int z,int floor,int key,String text,String baoxu) {
        //½«Êý¾ÝÌí¼Ó½øÈëµ÷ÊÔģʽ±í¸ñ
        Vector<String> rowData=new Vector<String>();
        rowData.add(String.valueOf(key));    
        String posi="pos("+x+","+y+","+z+","+floor+")";
        rowData.add(posi+";"+text);
        DebugManage.getTableModel().addRow(rowData);
    }
 
}