sorted up entity variables
This commit is contained in:
@@ -16,26 +16,31 @@ import java.util.logging.Level;
|
||||
public class Entity {
|
||||
|
||||
GamePanel panel;
|
||||
public int worldX, worldY;
|
||||
public int speed;
|
||||
public BufferedImage up1, up2, down1, down2, left1, left2, right1, right2;
|
||||
public Direction direction = Direction.DOWN;
|
||||
public int spriteCounter = 0;
|
||||
public int spriteNum = 1;
|
||||
public BufferedImage attackUp1, attackUp2, attackDown1, attackDown2, attackLeft1, attackLeft2, attackRight1, attackRight2;
|
||||
public BufferedImage image, image2, image3;
|
||||
public Rectangle solidArea = new Rectangle(0, 0, 48, 48);
|
||||
public int solidAreaDefaultX, solidAreaDefaultY;
|
||||
public boolean collisionOn = false;
|
||||
public int actionLock = 0;
|
||||
public boolean invincible = false;
|
||||
public int invincibleCount = 0;
|
||||
String[] dialogue = new String[20];
|
||||
int dialogueIndex = 0;
|
||||
public BufferedImage image, image2, image3;
|
||||
public String name;
|
||||
public boolean collision = false;
|
||||
public EntityType type;
|
||||
String[] dialogue = new String[20];
|
||||
|
||||
// CHARACTER STATUS
|
||||
// STATE
|
||||
public int worldX, worldY;
|
||||
public Direction direction = Direction.DOWN;
|
||||
public int spriteNum = 1;
|
||||
int dialogueIndex = 0;
|
||||
public boolean collisionOn = false;
|
||||
public boolean invincible = false;
|
||||
|
||||
// COUNTER
|
||||
public int spriteCounter = 0;
|
||||
public int actionLock = 0;
|
||||
public int invincibleCount = 0;
|
||||
|
||||
// ATTRIBUTES
|
||||
public EntityType type;
|
||||
public String name;
|
||||
public int speed;
|
||||
public int maxLife;
|
||||
public int life;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user