Structs.hh
/**
 * Conversion from char to command type.
 */
Conversion from char to command type.
Conversion from char to command type .
inline int char2CommandType (char c) {
  switch (c) {
  case 'm': return Move;
  case 'b': return Build;
  }
  return -1; 
}
inline int char2CommandType ( char c ) { switch ( c ) { case ' ' : return Move ; case ' ' : return Build ; } return -1 ; }
Conversion from char to command type.
Conversion from char to command type .
// Can't abort: if data were corrupted, master would fail.