示例#1
0
        public static StrategyFactory getInstance()
        {
            if (_instance == null)
                _instance = new StrategyFactory();

            return _instance;
        }
示例#2
0
 public void setStrategy(int strategy)
 {
     this.gameStrategy = StrategyFactory.getInstance().getGameStrategy(strategy);
 }