Back to project page Castle-Invaders.
The source code is released under:
GNU General Public License
If you think the Android project Castle-Invaders 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.noobgygames.castleinvaders.ui; //from w ww .j av a2 s . c om import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.math.Rectangle; import com.noobygames.castleinvaders.World.Species; import com.noobygames.utils.ui.ClickableElement; /** * A TextureElement is a ClickableElement having a Species connected to it * @see ClickableElement * @see Species * @author Nerzal * */ public class TextureElement extends ClickableElement{ Species species; public TextureElement(Rectangle position, Texture tex, Species species) { super(position, tex); this.species = species; } @Override public void onClick() { } public Species getSpecies() { return species; } }