public MazeCell(Position i_Position) { this.m_Position = i_Position; this.m_CellState = eCellState.Init; this.m_MessageForG = ""; this.m_MessageForH = ""; }
void m_StoryBoardHideCell_Completed(object sender, EventArgs e) { if (CellState != eCellState.LockVisible) { this.Background.Opacity = 0; CellState = eCellState.BgHidden; } }
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); } } }
internal void LockVisible(bool i_ChangeBackgroundOnLock) { this.CellState = eCellState.LockVisible; if (i_ChangeBackgroundOnLock) { this.Background = new LinearGradientBrush(Colors.LightGray, Colors.BurlyWood, 0.5); } }
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]); }