Example #1
0
        public void UpdateInfo(Puzzle.Puzzle puzzle)
        {
            this.PuzzleEditor.UpdatePuzzle(puzzle);

            this.SelectionSystem.UpdateInfo();

            this.InitializePlayerCreatorMode(this.Creator);

            this.UIController.UpdateUI();
        }
Example #2
0
        public void Initialize(Puzzle.Puzzle puzzle, bool creator)
        {
            this.InitializePuzzleInfo(puzzle);

            this.InitializeSelectionSystem();

            this.InitializePlayerCreatorMode(creator);

            this.InitializeUI();
        }
 public Cell(int px,int py, Puzzle pp, Graphics pg)
 {
     x = px;
     y = py;
     g = pg;
     p = pp;
     UpStatus = WallStatus.close;
     DownStatus = WallStatus.close;
     LeftStatus = WallStatus.close;
     RightStatus = WallStatus.close;
 }
 public Form1()
 {
     InitializeComponent();
     this.WindowState = FormWindowState.Maximized;
     this.StartPosition = FormStartPosition.CenterScreen;
     scale = 9;
     MaxScale = 20;
     depth = 5;
     margin = 50;
     width = this.Width;
     height = this.Height;
     g = CreateGraphics();this.Refresh();
     p = new Puzzle(scale, g, margin, width, height);
 }
Example #5
0
    public void Initialize(Puzzle.Puzzle puzzle)
    {
        var board = puzzle.Board.transform;

        this.CamLimtits.Vertical           = board.lossyScale.x;
        ;       this.CamLimtits.Horizontal = board.lossyScale.z;

        var pos = board.position;
        var rot = new Vector3(60, 270, 0);

        var maxDim = Mathf.Max(this.CamLimtits.Vertical, this.CamLimtits.Horizontal);

        this.CamLimtits.MaxZoom = this.CamLimtits.MinZoom + 2 * (maxDim / 2);
        var zoom = this.CamLimtits.MaxZoom;

        //Debug.Log(this.CamLimtits.MinZoom + "->" + this.CamLimtits.MaxZoom);

        this.SetStartState(pos, zoom, rot);
    }
Example #6
0
        public PuzzleEditor(CreatorController Controller, AnalyticsController analyticsController, Puzzle.Puzzle puzzle)
        {
            this.Controller          = Controller;
            this.AnalyticsController = analyticsController;
            this.Puzzle      = puzzle;
            this.ItemsPlaced = new List <Transform>();

            this.InitializeMovingItem();
        }
Example #7
0
 public void UpdatePuzzle(Puzzle.Puzzle puzzle)
 {
     this.Puzzle = puzzle;
 }
Example #8
0
 private void InitializePuzzleInfo(Puzzle.Puzzle puzzle)
 {
     this.PuzzleEditor = new PuzzleEditor(this, this.PuzzleController.AnalyticsController, puzzle);
 }
 public BDF(Puzzle pp)
 {
     p = pp;
 }
 private void 设置ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (p != null) p.UnDraw();
     if (path != null) path.UnDraw();
     p = new Puzzle(scale, g, margin, width, height);
 }
 private void 完全修复toolStripMenuItem1_Click(object sender, EventArgs e)
 {
     p = new Puzzle(scale, g, margin, width, height);
 }