Example #1
0
        // Initialize Player, with Player Object Update Fields :D
        public void setPlayer(Object po)
        {
            obj = po;
            BoogieCore.Log(LogType.System, "Player Class Initialized!");

            level        = po.Fields[(int)UpdateFields.UNIT_FIELD_LEVEL];
            exp          = po.Fields[(int)UpdateFields.PLAYER_XP];
            nextlevelexp = po.Fields[(int)UpdateFields.PLAYER_NEXT_LEVEL_XP];
            hp           = po.Fields[(int)UpdateFields.UNIT_FIELD_HEALTH];          // probably wrong?

            // Create contained Objects
            questLog  = new QuestLog(po);
            inventory = new Inventory(po);
            bank      = new Bank(po);
            equipped  = new Equipped(po);
            talents   = new Talents(po);
            buffs     = new Buffs(po);
            debuffs   = new Debuffs(po);

            inited = true;
        }
Example #2
0
        // Initialize Player, with Player Object Update Fields :D
        public void setPlayer(Object po)
        {
            obj = po;
            BoogieCore.Log(LogType.System, "Player Class Initialized!");

            level           = po.Fields[(int)UpdateFields.UNIT_FIELD_LEVEL];
            exp             = po.Fields[(int)UpdateFields.PLAYER_XP];
            nextlevelexp    = po.Fields[(int)UpdateFields.PLAYER_NEXT_LEVEL_XP];
            hp              = po.Fields[(int)UpdateFields.UNIT_FIELD_HEALTH];       // probably wrong?

            // Create contained Objects
            questLog = new QuestLog(po);
            inventory = new Inventory(po);
            bank = new Bank(po);
            equipped = new Equipped(po);
            talents = new Talents(po);
            buffs = new Buffs(po);
            debuffs = new Debuffs(po);

            inited = true;
        }