Esempio n. 1
0
        public SceneEditGameWorld(GameSystem gs, GameWorldSystem gw) : base(gs)
        {
            gameWorld = gw;

            mapSpritesInfo = new TileMapSprites.MapSpritesInfo(gameWorld);

            zoomableTileMapSprites = new ZoomableTileMapSprites <TileMapSprites>();

            addChild(zoomableTileMapSprites);

            uiTileInfoPanel = new UITileInfoPanel(gameSystem, new Point(30, formMain.Height - 108));

            addChild(uiTileInfoPanel);

            loadMap();

            uiEditGameWorldTileMapMenuWindow = new UIEditGameWorldTileMapMenuWindow(
                gameSystem,
                onPointerButtonClicked,
                onBrushButtonClicked,
                onRectangleButtonClicked,
                onFillButtonClicked,
                onTerrainSelected);

            pointerStatus           = new PointerStatus(this);
            drawTileStatus          = new DrawTileStatus(this);
            drawTileRectangleStatus = new DrawTileRectangleStatus(this);
            drawTileFillStatus      = new DrawTileFillStatus(this);

            uiEditGameWorldMenuWindow = new UIEditGameWorldMenuWindow(
                gs,
                onDatabaseButtonClicked,
                onSaveButtonClicked,
                onExitButtonClicked);
        }
Esempio n. 2
0
        public SceneGame(GameSystem gs, GameWorldSystem gw) : base(gs)
        {
            gameWorld = gw;

            tileMapStatus = new DefaultStatus(this);

            mapSpritesInfo = new TileMapSprites.MapSpritesInfo(gameWorld);

            zoomableTileMapSprites = new ZoomableTileMapSprites <TileMapSprites>();

            addChild(zoomableTileMapSprites);

            uiPlayerInfoPanel = new UIPlayerInfoPanel(gameSystem, gameWorld, new Point(formMain.Width - 540, 30));
            uiTileInfoPanel   = new UITileInfoPanel(gameSystem, new Point(30, formMain.Height - 108));

            addChild(uiPlayerInfoPanel);
            addChild(uiTileInfoPanel);

            loadMap();
        }