<commit_before>package com.kyokomi.core.logic;

import java.util.ArrayList;
import java.util.List;

import com.kyokomi.core.constants.SkillType;
import com.kyokomi.core.dao.MActorDao;
import com.kyokomi.core.dao.TActorStatusDao;
import com.kyokomi.core.dto.ActorPlayerDto;
import com.kyokomi.core.dto.ActorPlayerEquipDto;
import com.kyokomi.core.dto.ActorPlayerSkillDto;
import com.kyokomi.core.entity.MActorEntity;
import com.kyokomi.core.entity.TActorStatusEntity;
import com.kyokomi.srpgquest.scene.SrpgBaseScene;

public class ActorPlayerLogic {

	private MActorDao mActorDao;
	private TActorStatusDao tActorStatusDao;
	
	public ActorPlayerLogic() {
		mActorDao = new MActorDao();
		tActorStatusDao = new TActorStatusDao();
	}
	public ActorPlayerDto createActorPlayerDto(SrpgBaseScene pBaseScene, int playerId) {
		ActorPlayerDto actorPlayer = new ActorPlayerDto();
		actorPlayer.setPlayerId(playerId);
		// ---------------------------------------------
		// 基本ステータス
		// ---------------------------------------------
		
		MActorEntity mActorEntity = mActorDao.selectByActorId(
				pBaseScene.getBaseActivity().getDB(), playerId);
		if (mActorEntity == null) {
			pBaseScene.getBaseActivity().closeDB();
			throw new RuntimeException("マスタエラー id=" + playerId);
		}
		TActorStatusEntity tActorStatusEntity = tActorStatusDao.selectByActorId(
				pBaseScene.getBaseActivity().getDB(), playerId);
		pBaseScene.getBaseActivity().closeDB();
		
		actorPlayer.setName(mActorEntity.getActorName());
		actorPlayer.setImageResId(mActorEntity.getImageResId());
		actorPlayer.setLv(tActorStatusEntity.getLevel());
		actorPlayer.setExp(tActorStatusEntity.getExp());
		
		actorPlayer.setMovePoint(tActorStatusEntity.getMovePoint());
		actorPlayer.setAttackRange(tActorStatusEntity.getAttackRange());
		
		actorPlayer.setHitPoint(tActorStatusEntity.getHitPoint());
		actorPlayer.setHitPointLimit(tActorStatusEntity.getHitPoint());
		actorPlayer.setAttackPoint(tActorStatusEntity.getAttackPoint());
		actorPlayer.setDefencePoint(tActorStatusEntity.getDefencePoint());
		
		// ---------------------------------------------
		// 装備
		// ---------------------------------------------
		// TODO: DBとかから取得
		ActorPlayerEquipDto equipDto = new ActorPlayerEquipDto();
		// 武器
		equipDto.setWeaponName("レイピア");
		equipDto.setWeaponImgResId(3);
		equipDto.setWeaponStr(10);
		// アクセサリー
		equipDto.setAccessoryName("普通の指輪");
		equipDto.setAccessoryImgResId(33);
		equipDto.setAccessoryDef(5);
		
		actorPlayer.setEquipDto(equipDto);
		
		// ---------------------------------------------
		// スキル
		// ---------------------------------------------
		// TODO: DBとかから取得
		List<ActorPlayerSkillDto> skillDtos = new ArrayList<ActorPlayerSkillDto>();
		ActorPlayerSkillDto skillDto = new ActorPlayerSkillDto();
		skillDto.setSkillId(1);
		skillDto.setSkillImgResId(489);
		skillDto.setSkillName("流星剣");
		skillDto.setSkillText("5連続の剣攻撃");
		skillDto.setSkillType(SkillType.ATTACK_COUNT);
		skillDto.setSkillValue(5);
		skillDtos.add(skillDto);
		
		actorPlayer.setSkillDtoList(skillDtos);
		
		return actorPlayer;
	}
}
<commit_msg>srpgquest依存を修正<commit_after>package com.kyokomi.core.logic;

import java.util.ArrayList;
import java.util.List;

import com.kyokomi.core.constants.SkillType;
import com.kyokomi.core.dao.MActorDao;
import com.kyokomi.core.dao.TActorStatusDao;
import com.kyokomi.core.dto.ActorPlayerDto;
import com.kyokomi.core.dto.ActorPlayerEquipDto;
import com.kyokomi.core.dto.ActorPlayerSkillDto;
import com.kyokomi.core.entity.MActorEntity;
import com.kyokomi.core.entity.TActorStatusEntity;
import com.kyokomi.core.scene.KeyListenScene;

public class ActorPlayerLogic {

	private MActorDao mActorDao;
	private TActorStatusDao tActorStatusDao;
	
	public ActorPlayerLogic() {
		mActorDao = new MActorDao();
		tActorStatusDao = new TActorStatusDao();
	}
	public ActorPlayerDto createActorPlayerDto(KeyListenScene pBaseScene, int playerId) {
		ActorPlayerDto actorPlayer = new ActorPlayerDto();
		actorPlayer.setPlayerId(playerId);
		// ---------------------------------------------
		// 基本ステータス
		// ---------------------------------------------
		
		MActorEntity mActorEntity = mActorDao.selectByActorId(
				pBaseScene.getBaseActivity().getDB(), playerId);
		if (mActorEntity == null) {
			pBaseScene.getBaseActivity().closeDB();
			throw new RuntimeException("マスタエラー id=" + playerId);
		}
		TActorStatusEntity tActorStatusEntity = tActorStatusDao.selectByActorId(
				pBaseScene.getBaseActivity().getDB(), playerId);
		pBaseScene.getBaseActivity().closeDB();
		
		actorPlayer.setName(mActorEntity.getActorName());
		actorPlayer.setImageResId(mActorEntity.getImageResId());
		actorPlayer.setLv(tActorStatusEntity.getLevel());
		actorPlayer.setExp(tActorStatusEntity.getExp());
		
		actorPlayer.setMovePoint(tActorStatusEntity.getMovePoint());
		actorPlayer.setAttackRange(tActorStatusEntity.getAttackRange());
		
		actorPlayer.setHitPoint(tActorStatusEntity.getHitPoint());
		actorPlayer.setHitPointLimit(tActorStatusEntity.getHitPoint());
		actorPlayer.setAttackPoint(tActorStatusEntity.getAttackPoint());
		actorPlayer.setDefencePoint(tActorStatusEntity.getDefencePoint());
		
		// ---------------------------------------------
		// 装備
		// ---------------------------------------------
		// TODO: DBとかから取得
		ActorPlayerEquipDto equipDto = new ActorPlayerEquipDto();
		// 武器
		equipDto.setWeaponName("レイピア");
		equipDto.setWeaponImgResId(3);
		equipDto.setWeaponStr(10);
		// アクセサリー
		equipDto.setAccessoryName("普通の指輪");
		equipDto.setAccessoryImgResId(33);
		equipDto.setAccessoryDef(5);
		
		actorPlayer.setEquipDto(equipDto);
		
		// ---------------------------------------------
		// スキル
		// ---------------------------------------------
		// TODO: DBとかから取得
		List<ActorPlayerSkillDto> skillDtos = new ArrayList<ActorPlayerSkillDto>();
		ActorPlayerSkillDto skillDto = new ActorPlayerSkillDto();
		skillDto.setSkillId(1);
		skillDto.setSkillImgResId(489);
		skillDto.setSkillName("流星剣");
		skillDto.setSkillText("5連続の剣攻撃");
		skillDto.setSkillType(SkillType.ATTACK_COUNT);
		skillDto.setSkillValue(5);
		skillDtos.add(skillDto);
		
		actorPlayer.setSkillDtoList(skillDtos);
		
		return actorPlayer;
	}
}

{'fraction_non_alphanumeric': 0.19096774193548388, 'fraction_numerical': 0.003870967741935484, 'mean_word_length': 3.4387974230493916, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3307021', 'n_tokens_mistral': 2220, 'n_tokens_neox': 2137, 'n_words': 240}