3 public static int array
[][] = new int[Global
.boundX
][Global
.boundY
];
5 public static void init_array2() {
11 public static void update_position(Element elem
) {
14 if ((x = elem.getPosX()) > 0 && x < Global.boundX &&
15 (y = elem.getPosY()) > 0 && y < Global.boundY)
17 array
[elem
.getPosX()][elem
.getPosY()]++;
20 public static void main(String
[] args
) {
24 View view
= new View();
27 Element elem
= new Element();
29 for (int i
= 0; i
<= Global
.stepWidth
* Global
.stepFac
; i
++) {
31 update_position(elem
);
37 String columns = System.getenv("COLUMNS");
41 int width = Integer.valueOf(columns)/17;
43 for (int i = 0; i <= Global.stepWidth * Global.stepFac; i++) {
45 if ( i % width == width - 1 ) {