public void setValues(CharacterInformation charinfo)
 {
     hpBar.Value  = charinfo.getChar_curhp();
     spBar.Value  = charinfo.getChar_cursp();
     hpBar.Range  = charinfo.getChar_hp();
     spBar.Range  = charinfo.getChar_sp();
     expBar.Value = charinfo.getChar_curexp();
     expBar.Range = charinfo.getChar_exp();
 }
        public void init(int loginid, CharacterInformation info)
        {
            LoggedUserID        = loginid;
            SelectedCharacterID = info.getCharid();
            CurrentMapID        = info.getChar_curmap();

            this.playerEntity = null;
            this.playerEntity = new UnitEntity(info.getCharid(), info.getChar_name(), classConfigs[info.getChar_class()], info.getChar_hair(), info.getChar_face(), info.getChar_hp(), info.getChar_sp(), game, content, graphics, spriteBatch, entityNameFont, entityDamageFont, whiteRect, modelBank, itemBank, audioSystem, particleManager);

            state = GameState.map_warp;
        }