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

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