If you think the Android project feup-lpoo-android-tower-defense listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package pt.up.fe.lpoo.framework;
//fromwww.java2s.comimport android.content.res.AssetManager;
import android.graphics.Paint;
/**
* Information about the framework interface can be found at
* http://www.kilobolt.com/day-5-the-android-game-framework-part-i.html
*/publicinterface Graphics {
publicstaticenum ImageFormat {
ARGB8888, ARGB4444, RGB565
}
public Image newImage(String fileName, ImageFormat format);
publicvoid clearScreen(int color);
publicvoid drawLine(int x, int y, int x2, int y2, int color);
publicvoid drawRect(int x, int y, int width, int height, int color);
/**
* This function was added to the framework to allow drawing circles
* @param x x position of the circle's center
* @param y y position of the circle's center
* @param rad radius of the circle
* @param color color with which to paint the circle
*/publicvoid drawCircle(float x, float y, float rad, int color);
publicvoid drawImage(Image image, int x, int y, int srcX, int srcY,
int srcWidth, int srcHeight);
publicvoid drawImage(Image Image, int x, int y);
void drawString(String text, int x, int y, Paint paint);
publicint getWidth();
publicint getHeight();
publicvoid drawARGB(int i, int j, int k, int l);
void drawScaledImage(Image Image, int x, int y, int width, int height,
int srcX, int srcY, int srcWidth, int srcHeight);
public AssetManager getAssets();
}