MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / DifficultyNumberToDifficulty

Function DifficultyNumberToDifficulty

PanzerChasm/host.cpp:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54};
55
56static DifficultyType DifficultyNumberToDifficulty( const unsigned int n )
57{
58 switch( n )
59 {
60 case 0: return Difficulty::Easy;
61 case 1: return Difficulty::Normal;
62 case 2: return Difficulty::Hard;
63 default: return Difficulty::Normal;
64 };
65}
66
67Host::Host( const int argc, const char* const* const argv )
68 : program_arguments_( argc, argv )

Callers 2

NewGameCommandMethod · 0.85
RunLevelCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected