Javadoc, small bugfix in levels.xml
[AntiTD.git] / src / se / umu / cs / dit06ajnajs / Paintable.java
blob702eea922a1b734812b297a7617b9cbab458cd03
1 package se.umu.cs.dit06ajnajs;
3 import java.awt.Graphics;
4 import java.awt.Image;
6 /**
7 * Interface for every class that should be able to paint itself to a Graphics
8 * object.
10 * @author Anton Johansson (dit06ajn@cs.umu.se)
11 * @author Andreas Jakobsson (dit06ajs@cs.umu.se)
12 * @version 1.0
14 public interface Paintable {
15 /**
16 * Paints this Paintable.
17 * @param g The Graphics to paint with.
19 public void paint(Graphics g);
21 /**
22 * Sets the image the Paintable should contain.
23 * @param img The image a Paintable should contain.
25 public void setImage(Image img);
27 /**
28 * @return The center point of the Agent.
30 public java.awt.Point getCenterPoint();