public ConsoleColor Color(BlockTypeNum typBlock) { // this function returns the color of the block. switch (typBlock) { case BlockTypeNum.block01: return(ConsoleColor.Red); case BlockTypeNum.block02: return(ConsoleColor.Blue); case BlockTypeNum.block03: return(ConsoleColor.Cyan); case BlockTypeNum.block04: return(ConsoleColor.Yellow); case BlockTypeNum.block05: return(ConsoleColor.Green); case BlockTypeNum.block06: return(ConsoleColor.Magenta); default: return(ConsoleColor.DarkCyan); } }
public StructBlock(RotationEnum newAngle, BlockTypeNum newType) { this.angle = newAngle; this.type = newType; }