Back to project page Apocalypse-Defense.
The source code is released under:
MIT License
If you think the Android project Apocalypse-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.
package com.apocalypsedefense.core; /*from w w w. j av a2s.c o m*/ import java.io.Serializable; /** */ public class Armor implements Serializable { /** */ public int hp = 100; /** */ public Armor(int hp) { this.hp = hp; } /** * @param damage */ public void takeDamage(int damage) { this.hp -= damage; } }