예제 #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);
        }
예제 #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);
        }
예제 #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();
 }
예제 #4
0
 public static void instantiate()
 {
     if (instance == null)
         instance = new Content();
 }