I am taking on a project way bigger than my britches for my first project because i believe in baptism by fire. this is to be an RPG with similarities to final fantasy tactics.
I identified the need to have a class for actors, and i think i need subclasses for all of the different characters and character types. this is what i wrote up, it is the first part of my program (i don’t even have a game loop yet). did i do this right/intelligently/usably/extensibly or should i go back to the drawing board?
public class Actor {
private int level;
private int hp, maxhp;
private int mp, maxmp;
private int patk, pdef;
private int matk, mdef;
private int[] elementArray;
}
class PC extends Actor{
private int xp;
private int[] jobs;
private int rosterNumber;
private int partyNumber;
private int partyPos;
private String lhand, rhand, armor, jewelry, acc1, acc2;
}
class monster extends Actor{
private int xpValue;
private int goldValue;
private String loot;
private String[] Abilities;
}
class npc extends Actor{
private String job;
private String level;
private int energy;
private String project;
}