Example #1
0
 private PlayerFactory(GamePlay gameRef)
 {
     this.gameRef = gameRef;
 }
Example #2
0
 public static void Initialize(GamePlay gameRef)
 {
     Instance = new PlayerFactory(gameRef);
 }
 public static void Initialize(GamePlay gameRef)
 {
     Instance = new ProjectileFactory(gameRef);
 }
 private ProjectileFactory(GamePlay gameRef)
 {
     this.gameRef = gameRef;
 }
Example #5
0
        private void ClientConnectGamePlay(object sender, EventArgs e)
        {
            MechanicSingleton.InitializeWithSettings("ClientTesting", 3);

            var network = new NetworkClient();
            network.ConnectToGame("127.0.0.1");

            NetCommander.SetNetwork(network);

            var gameplayClient = new GamePlay(GameRef, LevelFactory.Instance.GetLevel1());
            GameRef.ChangeGameState(gameplayClient);
        }
Example #6
0
        private void StartWithLevel(Level level)
        {
            MechanicSingleton.InitializeWithSettings("ServerTesting", 12);

            var network = new NetworkServer();
            network.StartHosting();

            NetCommander.SetNetwork(network);

            var gameplayServer = new GamePlay(GameRef, level);
            GameRef.ChangeGameState(gameplayServer);
        }
 public TowerPlacingInput(GamePlay gameRef, Rectangle towerPlacingBox)
 {
     this.gameRef = gameRef;
     this.towerPlacingBox = towerPlacingBox;
 }