Commit cbf43429 authored by Melissa Tjong's avatar Melissa Tjong
Browse files

Merge origin/master into Melissa2

parents b7880eef e96c13d6
......@@ -22,7 +22,9 @@
*.ear
# NetBeans specific, updated for 8.1
nbproject/private
nbproject/
build.xml
manifest.mf
build/
nbbuild/
dist/
......
/* *****************************************
* CSCI205 - Software Engineering and Design
* Spring 2019
*
* Name: Aditi Vijayvergia, Melissa Tjong, Mitch Gavars, and Nick Bindela
* Date: Apr 21, 2019
* Time: 8:06:01 PM
*
* Project: csci205FinalProject_SP19
* Package: entities
* File: Entity
* Description:
*
* ****************************************
*/
package entities;
import org.newdawn.slick.Animation;
import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SpriteSheet;
import project.Box;
/**
*
* @author njb013
*/
public abstract class Entity extends Box {
public Image image;
public Color color;
public SpriteSheet spriteSheet;
public Animation playerAnimation;
public Entity() {
init();
}
public Image getImage() {
return image;
}
public abstract void init();
public void render(GameContainer gc, Graphics g) {
/*if (image != null) {
image.draw(x, y, width, height, color);
}
else if (spriteSheet != null) {
playerAnimation.draw(x, y, width, height);
}*/
}
public abstract void update(GameContainer gc, int delta);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment