Exemplo n.º 1
0
        public Character(String fname, Stats fstats, Content.Class_info fcinfo, Class_Type ftype)
        {
            stats = fstats;

            init(fname, fcinfo, ftype);

            pos = new Point(-1, -1);
        }
Exemplo n.º 2
0
        public Character(String fname, Content.Class_info fcinfo, Class_Type ftype)
        {
            stats=new Stats();

            stats.traits = fcinfo.start;

            init(fname, fcinfo, ftype);

            calcStat();

            stats.hp = stats.maxHp;
            stats.mana = stats.maxMana;

            pos = new Point(-1, -1);
        }
Exemplo n.º 3
0
 private void init(String fname, Content.Class_info fcinfo, Class_Type ftype)
 {
     type = ftype;
     name = fname;
     level = 1;
     exp = 0;
     org = "";
     cinfo = fcinfo;
     equipment = new Equipment();
 }
Exemplo n.º 4
0
 public static void instantiate()
 {
     if (instance == null)
         instance = new Content();
 }