New collision detection. Units can push each other out of bounds though
[AntiTD.git] / src / se / umu / cs / dit06ajnajs / Paintable.java
blobc23e92401b48f1fc881063695c6591a1bd706718
1 package se.umu.cs.dit06ajnajs;
3 import java.awt.Graphics;
4 import java.awt.Image;
6 public interface Paintable {
7 /**
8 * Paints this Paintable.
9 * @param g The Graphics to paint with.
11 public void paint(Graphics g);
13 /**
14 * Sets the image the Paintable should contain.
15 * @param img The image a Paintable should contain.
17 public void setImage(Image img);
20 // TODO Make this interface abstract.
21 // Every getCenterPoint has the same implementation
22 /**
23 * @return The center point of the Agent.
25 public java.awt.Point getCenterPoint();