示例#1
0
 public MazeCell(Position i_Position)
 {
     this.m_Position    = i_Position;
     this.m_CellState   = eCellState.Init;
     this.m_MessageForG = "";
     this.m_MessageForH = "";
 }
示例#2
0
 void m_StoryBoardHideCell_Completed(object sender, EventArgs e)
 {
     if (CellState != eCellState.LockVisible)
     {
         this.Background.Opacity = 0;
         CellState = eCellState.BgHidden;
     }
 }
示例#3
0
        private void Cell_Click(object sender, RoutedEventArgs e)
        {
            if (this.Background.Opacity == 0)
            {
                this.Background.Opacity = 1;

                if (CellState == eCellState.BgHidden)
                {
                    CellState = eCellState.BgVisible;

                    ImagePressed.Invoke(this);
                }

                if (this.Opacity == 0)
                {
                    m_StoryBoardMouseEnter.Begin(this, true);
                }
            }
        }
示例#4
0
 internal void LockVisible(bool i_ChangeBackgroundOnLock)
 {
     this.CellState = eCellState.LockVisible;
     if (i_ChangeBackgroundOnLock)
     {
         this.Background = new LinearGradientBrush(Colors.LightGray, Colors.BurlyWood, 0.5);
     }
 }
示例#5
0
 private static void UpdateCellState(int id, Vector2 coords, eCellState state)
 {
     grids[id][coords] = state;
     players[id].RpcUpdateMyGrid((int)coords.x, (int)coords.y, grids[id][coords]);
 }