Initial commit
This commit is contained in:
65
src/com/hobogames/gameobj/entities/Entity.java
Normal file
65
src/com/hobogames/gameobj/entities/Entity.java
Normal file
@ -0,0 +1,65 @@
|
||||
package build.com.hobogames.gameobj.entities;
|
||||
|
||||
import build.com.hobogames.gameobj.GameObject;
|
||||
import build.com.hobogames.Handler;
|
||||
|
||||
public abstract class Entity extends GameObject {
|
||||
|
||||
protected int dir;
|
||||
protected int health, maxHealth;
|
||||
protected int stamina, maxStamina;
|
||||
protected int attack, defense, speed;
|
||||
protected int blockChance, dodgeChance, hitChance;
|
||||
protected int xp, level;
|
||||
|
||||
//attributes
|
||||
protected int strength, agility, endurance, intelligence, perception, charisma, luck;
|
||||
|
||||
//protected Trait[] traits = new Trait[40]
|
||||
//protected Skill[] skills = new Skills[20]
|
||||
|
||||
public Entity(Handler handler) {
|
||||
super(handler);
|
||||
}
|
||||
|
||||
public abstract void move(int moveX, int moveY);
|
||||
public abstract void attack();
|
||||
|
||||
public int getDir() {return dir;}
|
||||
public int getHealth() {return health;}
|
||||
public int getMaxHealth() {return maxHealth;}
|
||||
public int getAttack() {return attack;}
|
||||
public int getDefense() {return defense;}
|
||||
public int getSpeed() {return speed;}
|
||||
public int getBlockChance() {return blockChance;}
|
||||
public int getDodgeChance() {return dodgeChance;}
|
||||
public int getHitChance() {return hitChance;}
|
||||
public int getXp() {return xp;}
|
||||
public int getLevel() {return level;}
|
||||
public int getStrength() {return strength;}
|
||||
public int getAgility() {return agility;}
|
||||
public int getEndurance() {return endurance;}
|
||||
public int getIntelligence() {return intelligence;}
|
||||
public int getPerception() {return perception;}
|
||||
public int getCharisma() {return charisma;}
|
||||
public int getLuck() {return luck;}
|
||||
|
||||
public void setDir(int dir) {this.dir = dir;}
|
||||
public void setHealth(int health) {this.health = health;}
|
||||
public void setMaxHealth(int maxHealth) {this.maxHealth = maxHealth;}
|
||||
public void setAttack(int attack) {this.attack = attack;}
|
||||
public void setDefense(int defense) {this.defense = defense;}
|
||||
public void setSpeed(int speed) {this.speed = speed;}
|
||||
public void setBlockChance(int blockChance) {this.blockChance = blockChance;}
|
||||
public void setDodgeChance(int dodgeChance) {this.dodgeChance = dodgeChance;}
|
||||
public void setHitChance(int hitChance) {this.hitChance = hitChance;}
|
||||
public void setXp(int xp) {this.xp = xp;}
|
||||
public void setLevel(int level) {this.level = level;}
|
||||
public void setStrength(int strength) {this.strength = strength;}
|
||||
public void setAgility(int agility) {this.agility = agility;}
|
||||
public void setEndurance(int endurance) {this.endurance = endurance;}
|
||||
public void setIntelligence(int intelligence) {this.intelligence = intelligence;}
|
||||
public void setPerception(int perception) {this.perception = perception;}
|
||||
public void setCharisma(int charisma) {this.charisma = charisma;}
|
||||
public void setLuck(int luck) {this.luck = luck;}
|
||||
}
|
Reference in New Issue
Block a user