public void ClearBoardValue() { fadeTimer.turnTimerOff(); this.type = BoardValType.BOARD_VAL_NULL; this.state = BoardState.BOARD_NULL; this.prevState = BoardState.BOARD_NULL; this.color = Color.white; }
/* * NOTE: This is since alien blocks are different colors and so when the hover & * grab color are the same they don't show up on some. For example yellow hover on a yellow block. */ public TwoColors GetAlienHoverColor(int indexAt) { TwoColors result = new TwoColors(); BoardValType type = this.blocks[indexAt].type; switch (type) { case BoardValType.BOARD_VAL_SHAPE0: { //green result.color1 = Color.yellow; result.color2 = Color.green; } break; case BoardValType.BOARD_VAL_SHAPE1: { //yellow result.color1 = Color.green; result.color2 = Color.green; } break; case BoardValType.BOARD_VAL_SHAPE2: { //blue result.color1 = Color.yellow; result.color2 = Color.green; } break; case BoardValType.BOARD_VAL_SHAPE3: { //pink result.color1 = Color.yellow; result.color2 = Color.green; } break; case BoardValType.BOARD_VAL_SHAPE4: { //beige result.color1 = Color.yellow; result.color2 = Color.green; } break; default: { Assert.IsTrue(false); } break; } return(result); }