ok so im working on my first large project the roguelike. i really am in no way experienced enough but im just going to learn along the way. right now im not worrying about the map and so on and im focusing on the actors (NPC's and the PC) my first goal is to finish character generation so that you can create a character and look at his/her character sheet.

so far i have the class BodyPart which holds all flags and stats that a bodypart needs...

CODE :
public class BodyPart

{

// Container Flags
public boolean canWield;


/** Creates a new instance of BodyPart */
public BodyPart(boolean startCanWield)

{

canWield = startCanWield;

}

}


i use class creature to put together creatures

CODE :

public class Creature

{

protected int creatureType;


/** Creates a new instance of Creature */
public Creature(int startCreatureType)

{

creatureType = startCreatureType;

switch(creatureType)

{

case 1: buildHuman(); break;

}



}

public void buildHuman()

{

BodyPart leftArm = new BodyPart(true);
leftArm = new BodyPart(true);

}

}



then i have 2 subclasses of creature "NPC" and "PC" which are basically the same thing accept that NPC's will use AI of course.

now what i want to know is first off: does this even make sense?

and second: if it does then how do i see the information stored in an object? i have a main class as a test... i want to tell java to create a NPC and then print whether or not canWield is true or not but i dont see how. i am putting the creature object into memory with a left arm right?



i may just be doing everything wrong so bear with me on this ok?