Created
March 7, 2012 02:03
-
-
Save Spikey3/1990435 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package game; | |
/** | |
* An entity which represents one of our space invader aliens. | |
* | |
* @author Kevin Glass | |
*/ | |
public class IconEntity extends Entity { | |
/** The game in which the entity exists */ | |
private Engine engine; | |
/** | |
* Create a new alien entity | |
* | |
* @param game The game in which this entity is being created | |
* @param ref The sprite which should be displayed for this alien | |
* @param x The intial x location of this dagger | |
* @param y The intial y location of this dagger | |
*/ | |
public IconEntity(Engine engine,String ref,int x,int y) { | |
super(ref,x,y); | |
this.engine = engine; | |
} | |
/** | |
* Request that this alien moved based on time elapsed | |
* | |
* @param delta The time that has elapsed since last move | |
*/ | |
public void move(long delta) { | |
super.move(delta); | |
} | |
/** | |
* Update the game logic related to aliens | |
*/ | |
public void doLogic() { | |
} | |
/** | |
* Notification that this alien has collided with another entity | |
* | |
* @param other The other entity | |
*/ | |
public void collidedWith(Entity other) { | |
// collisions with aliens are handled elsewhere | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment