/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package transientlibs.objects.creatures;
import transientlibs.objects.general.PointSet;
import transientlibs.objects.primitives.SmallPoints;
import transientlibs.objects.primitives.BooleanList;
import transientlibs.objects.general.Node;
import transientlibs.objects.primitives.TBoolean;
import transientlibs.bindedobjects.gamecontent.Perk;
import transientlibs.bindedobjects.gamecontent.Stats;
import java.util.ArrayList;
import transientlibs.bindedobjects.gamecontent.Creatures;
import transientlibs.preui.objects.gui.elements.TextMarker;
/**
*
* @author kibertoad
*/
public class Creature extends Node{
public Body body = null;
public Person person = null;
//public ArrayList<EquipmentSlot> equipmentSlots;
public Creatures creature = null;
public PointSet<SmallPoints> skills = new PointSet<SmallPoints>();
public PointSet<SmallPoints> stats = new PointSet<SmallPoints>();
public BooleanList perks = new BooleanList();
public boolean hasPerk (int whichOne) {
return perks.get(whichOne).value;
}
public boolean getPerk (int whichOne) {
return perks.get(whichOne).value = true;
}
public boolean losePerk (int whichOne) {
return perks.get(whichOne).value = false;
}
public Creature (){
int x;
for (x = 0; x < Stats.stats.size(); x++) {
stats.add(new SmallPoints (4, 20));
}
for (x = 0; x < Perk.perks.size(); x++) {
perks.add(new TBoolean(false));
}
}
public boolean hasSkill (int theOne, int howMuch) {
return skills.get(theOne).now.value >= howMuch;
}
}