import java.awt.*; import java.awt.event.*; public class Ammus { int x; int y; boolean oikea = true; public void Ammus() { } public void alusta(int nx, int ny) { x = nx; y = ny; } public void paint(Graphics g) { g.setColor(Color.YELLOW); g.drawLine(x, y+25, x, y+25); } public void liikuV() { x = x - 3; } public void liikuO() { x = x + 3; } }