Exemple #1
0
 public void Initialize(Map map, int mapSeed)
 {
     this.map = map;
     this.random = new Random(mapSeed);
     CreateShape();
     SetAreaInfoShape();
 }
Exemple #2
0
        public void Initialize()
        {
            this.map = this.game.Map;
            this.mapDrawer = this.game.MapDrawer;
            this.network = this.game.Network;
            this.networkController = this.game.NetworkController;

            mapClickController.Initialize(game.Input, map);

            network.reciveData += ReciveData;
            networkController.StartPolling();

            game.update += Update;
            mapDrawer.Visible = true;
        }
        public void Initialize(InputManager inputManager, Map map)
        {
            this.input = inputManager;
            this.map = map;

            ClickAreaID = Map.EmptyArea;
            ClickArea = null;
            this.downArea = null;

            for (int i = 0; i < map.AreaNum; i++)
            {
                var info = map.GetAreaInfo(i);
                info.Shape.MouseLeftButtonUp += AreaMouseButtonUp;
                info.Shape.MouseLeftButtonDown += AreaMouseButtonDown;
            }
        }