6 |
import gzz.*; |
import gzz.*; |
7 |
import gzz.potion.Expression.*; |
import gzz.potion.Expression.*; |
8 |
|
|
9 |
public class Break implements Command{ |
public class Break extends AbstractHead implements Command{ |
10 |
|
|
11 |
public String getString(Expression[] params, Map context){ |
public Break() { |
12 |
|
super(new Object[] { |
13 |
return null; |
"Break ", Types.CONNECTION |
14 |
|
}); |
15 |
} |
} |
16 |
|
|
17 |
public void render(Expression[] params, Map context, HChain hchain ){} |
public void execute(List[] params, Map context) { |
18 |
|
for(Iterator i=params[0].iterator(); i.hasNext();) { |
19 |
public Type[] getParams() { |
Connection c = (Connection)i.next(); |
20 |
|
c.negside.disconnect(c.dim, 1); |
21 |
return null; |
c.posside.disconnect(c.dim, -1); |
|
|
|
|
} |
|
|
|
|
|
public void execute(List[] params, Map context) { |
|
|
|
|
|
for(Iterator i=params[0].iterator(); i.hasNext();) { |
|
|
|
|
|
Connection c = (Connection)i.next(); |
|
|
c.negside.disconnect(c.dim, 1); |
|
|
c.posside.disconnect(c.dim, -1); |
|
|
} |
|
|
|
|
22 |
} |
} |
23 |
|
} |
24 |
} |
} |