// Path: src/main/java/com/zhaidaosi/game/server/model/player/PlayerFactory.java
// public class PlayerFactory implements IBasePlayerFactory {
// 
//     public IBaseCharacter getPlayer() {
//         return new Player();
//     }
// 
// }


import javax.servlet.http.HttpServlet;
import com.zhaidaosi.game.jgframework.Boot;
import com.zhaidaosi.game.server.model.player.PlayerFactory;
package com.zhaidaosi.game.server;



@SuppressWarnings("serial")
public class BootStart extends HttpServlet {

    private static void start() {
        //设置action所在包路径，不设置不扫描
        Boot.setActionPackage("com.zhaidaosi.game.server.model.action");
        //设置area所在包路径，不设置不扫描
        Boot.setAreaPackage("com.zhaidaosi.game.server.model.area");
        //设置player工厂，默认为BasePlayerFactory
// Path: src/main/java/com/zhaidaosi/game/server/model/player/PlayerFactory.java
// public class PlayerFactory implements IBasePlayerFactory {
// 
//     public IBaseCharacter getPlayer() {
//         return new Player();
//     }
// 
// }


// Path: src/main/java/com/zhaidaosi/game/server/BootStart.java
import javax.servlet.http.HttpServlet;
import com.zhaidaosi.game.jgframework.Boot;
import com.zhaidaosi.game.server.model.player.PlayerFactory;

package com.zhaidaosi.game.server;



@SuppressWarnings("serial")
public class BootStart extends HttpServlet {

    private static void start() {
        //设置action所在包路径，不设置不扫描
        Boot.setActionPackage("com.zhaidaosi.game.server.model.action");
        //设置area所在包路径，不设置不扫描
        Boot.setAreaPackage("com.zhaidaosi.game.server.model.area");
        //设置player工厂，默认为BasePlayerFactory
        Boot.setPlayerFactory(new PlayerFactory());