Header for input functions.
More...
#include "Defines.h"
#include "Structs.h"
Go to the source code of this file.
◆ ReadBoardSize()
Read the board size (width and height) for a tourney. ReadUnsigned(UINT&, Parity, UINT) is called to read from the user until they enter a large enough unsigned integer of the correct parity, or the letter 'q' to quit.
- Parameters
-
n | [out] The board size typed by the user. |
t | Tourney descriptor. |
- Returns
- true If the user wants to quit instead.
Definition at line 91 of file Input.cpp.
◆ ReadCycleType()
Read a character from stdin and decode it into a cycle type.
- Parameters
-
t | [out] The type of tour that the user wants. |
- Returns
- true If the user wants to restart instead.
Definition at line 216 of file Input.cpp.
◆ ReadGeneratorType()
Read a character from stdin and decode it into a generator type.
- Parameters
-
t | [out] The type of generator that the user wants. |
- Returns
- true If the user wants to restart instead.
Definition at line 152 of file Input.cpp.
◆ ReadObfuscate()
bool ReadObfuscate |
( |
bool & |
obfuscate | ) |
|
Read a character from stdin and decode it into obfuscate status.
- Parameters
-
obfuscate | [out] true if the user requests blurring. |
- Returns
- true If the user wants to restart instead.
Definition at line 262 of file Input.cpp.
◆ ReadTask()
bool ReadTask |
( |
Task & |
t | ) |
|
Read a character from stdin and decode it into a task.
- Parameters
-
t | [out] The task that the user wants. |
- Returns
- true If the user wants to quit instead.
Definition at line 293 of file Input.cpp.
◆ ReadUnsigned()
Read from the user until they enter a large enough unsigned integer of the correct parity, or the letter 'q' to quit.
- Parameters
-
n | [out] The unsigned integer typed by the user. |
parity | The parity of the unsigned integer to be read. |
lo | Lower bound for the unsigned integer to be read. |
- Returns
- true If the user wants to quit instead.
Definition at line 36 of file Input.cpp.