public HttpWrapper(HttpClient client) { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; _client = client; _client.BaseAddress = new Uri(apiUrl); _singleton = DebugLogSingleton.GetInstance(); }
public BaloonCommand(BaloonFactory factory, BaloonTypes baloonType) { this._factory = factory; this._baloonType = baloonType; this._singleton = DebugLogSingleton.GetInstance(); this._singleton.Log <BaloonCommand>("Command", "Initializing baloon command"); }
public TowerCommand(TowerFactory factory, Point location, TowerTypes towerType) { this._factory = factory; this._location = location; this._towerType = towerType; this._singleton = DebugLogSingleton.GetInstance(); this._singleton.Log <TowerCommand>("Command", "Initializing tower command"); }
private GameStateSingleton() { Players = new List <Player>(); _entities = new ListItertor <IRenderable>(); _towerEntities = new ListItertor <IRenderable>(); AllowAddPlayer1Baloons = true; AllowAddPlayer2Baloons = true; InConstructionMode = false; _singleton = DebugLogSingleton.GetInstance(); _singleton.Log <GameStateSingleton>("Singleton", "Initializing game state. "); }
public Game(int width, int height) { _width = width; _height = height; _points = new List <PointF[]>(); _gameState.AddPlayer(new Player("Player 1 (you)")); _waveDirector = new WaveDirector(); _waveDirector.SetBuilder(new FirstWave()); _singleton = DebugLogSingleton.GetInstance(); _singleton.Log <IGameFacade>("Facade", "IGameFacade method: Update use facade pattern."); waveCreator = new Timer(i => _generateWave(), null, 0, 20000); _facadeCounter = 0; }
public Player1Movement() { _singleton = DebugLogSingleton.GetInstance(); }
public UIButtonsHandler() { _logSingleton = DebugLogSingleton.GetInstance(); _currentState = new SpawningMode(); }
public BaloonFactory(bool isPlayer1Factory) { this.isPlayer1Factory = isPlayer1Factory; _singleton = DebugLogSingleton.GetInstance(); createdBaloons = new List <IBaloon>(); }
public MementosStorer() { _mementos = new Stack <Memento>(); _logSingleton = DebugLogSingleton.GetInstance(); }
public FirstWave() { _singleton = DebugLogSingleton.GetInstance(); }
public WaveDirector() { _singleton = DebugLogSingleton.GetInstance(); }
public IntermediateDamage() { _logSingleton = DebugLogSingleton.GetInstance(); }
public WeakDamage() { _logSingleton = DebugLogSingleton.GetInstance(); }
public StrongDamage() { _logSingleton = DebugLogSingleton.GetInstance(); }