// Path: core/src/com/v5ent/game/entities/Monster.java
// public class Monster extends Role {
//     private static final String TAG = Monster.class.getSimpleName();
// 
//     public Monster(String entityId,int x,int y) {
//         super(entityId);
//         this.setCurrentDir(Direction.RIGHT);
//         this.idleRightAnimation =loadAnimation(x,y);
//         currentFrame =idleRightAnimation.getKeyFrame(0);
//         // Define sprite size to be 1m x 1m in game world
//         this.setSize(currentFrame.getRegionWidth(), currentFrame.getRegionHeight());
//         // Set origin to sprite's center
//         this.setOrigin(this.getWidth() / 2.0f, 0);
//         //inventory
//     }
//     //Specific to two frame animations where each frame is stored in a separate texture
//     protected Animation loadAnimation(int x,int y){
// 
//         TextureRegion[][] texture1Frames = TextureRegion.split(Assets.instance.MONSTERS0, 16, 16);
//         TextureRegion[][] texture2Frames = TextureRegion.split(Assets.instance.MONSTERS1, 16, 16);
// 
//         Array<TextureRegion> animationKeyFrames = new Array<TextureRegion>(2);
//         TextureRegion t1 = texture1Frames[x][y];
//         t1.flip(true,false);
//         TextureRegion t2 = texture2Frames[x][y];
//         t2.flip(true,false);
//         animationKeyFrames.add(t1);
//         animationKeyFrames.add(t2);
// 
//         return new Animation(0.5f, animationKeyFrames, Animation.PlayMode.LOOP);
//     }
// 
//     private int xpReward = 100;
//     private int gpReward = 100;
// 
//     public int getXpReward() {
//         return xpReward;
//     }
// 
//     public void setXpReward(int xpReward) {
//         this.xpReward = xpReward;
//     }
// 
//     public int getGpReward() {
//         return gpReward;
//     }
// 
//     public void setGpReward(int gpReward) {
//         this.gpReward = gpReward;
//     }
// 
// }


import com.v5ent.game.entities.Monster;
import java.util.Hashtable;
package com.v5ent.game.battle;



/**
 * Created by Administrator on 2016/12/11.
 */

public class Monsters {
    static int hp =15;
    static int ap =40;
    static int dp =5;
    static int xp =5;
    static int gp =5;
    public static Monster  initData(Monster monster){
        monster.setHealthPoint(hp);
        monster.setAttackPoint(ap);
        monster.setDefensePoint(dp);
        monster.setXpReward(xp);
        monster.setGpReward(gp);
        return monster;
    }

    public static Hashtable<String, Monster> initDatas(){
        Hashtable<String, Monster> configs =  new Hashtable<String, Monster>();
        Monster monster1 = new Monster(MonsterFactory.MonsterType.MONSTER001.toString(),0,0);
        initData(monster1);
        configs.put(MonsterFactory.MonsterType.MONSTER001.toString(),monster1);
        Monster monster2 = new Monster(MonsterFactory.MonsterType.MONSTER002.toString(),0,1);
        initData(monster2);
        configs.put(MonsterFactory.MonsterType.MONSTER002.toString(),monster2);
// Path: core/src/com/v5ent/game/entities/Monster.java
// public class Monster extends Role {
//     private static final String TAG = Monster.class.getSimpleName();
// 
//     public Monster(String entityId,int x,int y) {
//         super(entityId);
//         this.setCurrentDir(Direction.RIGHT);
//         this.idleRightAnimation =loadAnimation(x,y);
//         currentFrame =idleRightAnimation.getKeyFrame(0);
//         // Define sprite size to be 1m x 1m in game world
//         this.setSize(currentFrame.getRegionWidth(), currentFrame.getRegionHeight());
//         // Set origin to sprite's center
//         this.setOrigin(this.getWidth() / 2.0f, 0);
//         //inventory
//     }
//     //Specific to two frame animations where each frame is stored in a separate texture
//     protected Animation loadAnimation(int x,int y){
// 
//         TextureRegion[][] texture1Frames = TextureRegion.split(Assets.instance.MONSTERS0, 16, 16);
//         TextureRegion[][] texture2Frames = TextureRegion.split(Assets.instance.MONSTERS1, 16, 16);
// 
//         Array<TextureRegion> animationKeyFrames = new Array<TextureRegion>(2);
//         TextureRegion t1 = texture1Frames[x][y];
//         t1.flip(true,false);
//         TextureRegion t2 = texture2Frames[x][y];
//         t2.flip(true,false);
//         animationKeyFrames.add(t1);
//         animationKeyFrames.add(t2);
// 
//         return new Animation(0.5f, animationKeyFrames, Animation.PlayMode.LOOP);
//     }
// 
//     private int xpReward = 100;
//     private int gpReward = 100;
// 
//     public int getXpReward() {
//         return xpReward;
//     }
// 
//     public void setXpReward(int xpReward) {
//         this.xpReward = xpReward;
//     }
// 
//     public int getGpReward() {
//         return gpReward;
//     }
// 
//     public void setGpReward(int gpReward) {
//         this.gpReward = gpReward;
//     }
// 
// }


// Path: core/src/com/v5ent/game/battle/Monsters.java
import com.v5ent.game.entities.Monster;
import java.util.Hashtable;

package com.v5ent.game.battle;



/**
 * Created by Administrator on 2016/12/11.
 */

public class Monsters {
    static int hp =15;
    static int ap =40;
    static int dp =5;
    static int xp =5;
    static int gp =5;
    public static Monster  initData(Monster monster){
        monster.setHealthPoint(hp);
        monster.setAttackPoint(ap);
        monster.setDefensePoint(dp);
        monster.setXpReward(xp);
        monster.setGpReward(gp);
        return monster;
    }

    public static Hashtable<String, Monster> initDatas(){
        Hashtable<String, Monster> configs =  new Hashtable<String, Monster>();
        Monster monster1 = new Monster(MonsterFactory.MonsterType.MONSTER001.toString(),0,0);
        initData(monster1);
        configs.put(MonsterFactory.MonsterType.MONSTER001.toString(),monster1);
        Monster monster2 = new Monster(MonsterFactory.MonsterType.MONSTER002.toString(),0,1);
        initData(monster2);
        configs.put(MonsterFactory.MonsterType.MONSTER002.toString(),monster2);
        Monster monster3 = new Monster(MonsterFactory.MonsterType.MONSTER003.toString(),0,2);