Back to project page Hungry-Mouse.
The source code is released under:
MIT License
If you think the Android project Hungry-Mouse listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
//Name: Kamikazi.java //Purpose: the kamikazi enemy with the coordinates /* ww w .java2s. c o m*/ package com.hungry.mouse.main; public class Kamikazi extends Enemy { //constructor public Kamikazi(int centerX, int centerY) { setCenterX(centerX);//x axis coordinates setCenterY(centerY);//y axis coordinates } public void subtractHealth(int health){ this.health-=health; } }